Posted By

gaunab on 12/20/06


Tagged

cakephp


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

codehooligans


weird sessions problem with cakephp


 / Published in: PHP
 

  1. First visit. No session, no cookies so far.
  2.  
  3. $_COOKIE:
  4.  
  5. $_SESSION:
  6. (
  7. [Config] => Array
  8. (
  9. [rand] => 2031703447
  10. [time] => 1166640164
  11. [userAgent] => 05c06381cba0c03d1fda664faf636fab
  12. )
  13.  
  14. )
  15.  
  16. SID: WEGNERDE=4068f91034bca9992f4e86fb555b3997
  17.  
  18. sessioncomponent Object
  19. (
  20. [_log] =>
  21. [CakeSession] => cakesession Object
  22. (
  23. [_log] =>
  24. [valid] => 1
  25. [error] => Array
  26. (
  27. [2] => Config doesn't exist
  28. [1] => Session is valid
  29. )
  30.  
  31. [_userAgent] => 05c06381cba0c03d1fda664faf636fab
  32. [path] => /index.php/
  33. [lastError] => 1
  34. [security] => high
  35. [time] => 1166638964
  36. [sessionTime] => 1166640164
  37. [host] => www.[snip].de
  38. [cookieLifeTime] => 0
  39. )
  40.  
  41. [base] => /index.php
  42. [webroot] => /wegner/webroot/
  43. [here] => /index.php/nodes/view/18
  44. [params] => Array
  45. (
  46. [controller] => nodes
  47. [action] => view
  48. [pass] => Array
  49. (
  50. [0] => 18
  51. )
  52.  
  53. [form] => Array
  54. (
  55. )
  56.  
  57. [url] => Array
  58. (
  59. [url] => /nodes/view/18
  60. )
  61.  
  62. [bare] => 0
  63. [webservices] =>
  64. [plugin] =>
  65. )
  66.  
  67. [action] => view
  68. [data] =>
  69. [plugin] =>
  70. )
  71.  
  72. DB:
  73. select '4068f91034bca9992f4e86fb555b3997', zero results
  74. insert row with id '4068f91034bca9992f4e86fb555b3997'
  75.  
  76. ===================
  77. Second page visit
  78. ===================
  79.  
  80. $_COOKIE:
  81. Array
  82. (
  83. [WEGNERDE] => 4068f91034bca9992f4e86fb555b3997
  84. )
  85.  
  86. $_SESSION:
  87. Array
  88. (
  89. [Config] => Array
  90. (
  91. [rand] => 724195738
  92. [time] => 1166640598
  93. [userAgent] => 05c06381cba0c03d1fda664faf636fab
  94. )
  95.  
  96. )
  97.  
  98. SID: (empty)
  99.  
  100. sessioncomponent Object
  101. (
  102. [_log] =>
  103. [CakeSession] => cakesession Object
  104. (
  105. [_log] =>
  106. [valid] => 1
  107. [error] => Array
  108. (
  109. [2] => Config doesn't exist
  110. [1] => Session is valid
  111. )
  112.  
  113. [_userAgent] => 05c06381cba0c03d1fda664faf636fab
  114. [path] => /index.php/
  115. [lastError] => 1
  116. [security] => high
  117. [time] => 1166639398
  118. [sessionTime] => 1166640598
  119. [host] => www.[snip].de
  120. [cookieLifeTime] => 0
  121. )
  122.  
  123. [base] => /index.php
  124. [webroot] => /wegner/webroot/
  125. [here] => /index.php/users/login
  126. [params] => Array
  127. (
  128. [controller] => users
  129. [action] => login
  130. [form] => Array
  131. (
  132. )
  133.  
  134. [url] => Array
  135. (
  136. [url] => /users/login
  137. )
  138.  
  139. [bare] => 0
  140. [webservices] =>
  141. [plugin] =>
  142. )
  143.  
  144. [action] => login
  145. [data] =>
  146. [plugin] =>
  147. )
  148.  
  149.  
  150. DB:
  151. select id 'c2042ca664205240f5e327762e615d72', 0 results
  152. insert new row with id = c2042ca664205240f5e327762e615d72

Report this snippet  

You need to login to post a comment.