/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
First visit. No session, no cookies so far. $_COOKIE: $_SESSION: ( ( [userAgent] => 05c06381cba0c03d1fda664faf636fab ) ) SID: WEGNERDE=4068f91034bca9992f4e86fb555b3997 sessioncomponent Object ( [_log] => [CakeSession] => cakesession Object ( [_log] => [valid] => 1 ( [2] => Config doesn't exist [1] => Session is valid ) [_userAgent] => 05c06381cba0c03d1fda664faf636fab [path] => /index.php/ [lastError] => 1 [security] => high [time] => 1166638964 [sessionTime] => 1166640164 [host] => www.[snip].de [cookieLifeTime] => 0 ) [base] => /index.php [webroot] => /wegner/webroot/ [here] => /index.php/nodes/view/18 [params] => Array ( [controller] => nodes [action] => view [pass] => Array ( [0] => 18 ) [form] => Array ( ) [url] => Array ( [url] => /nodes/view/18 ) [bare] => 0 [webservices] => [plugin] => ) [action] => view [data] => [plugin] => ) DB: select '4068f91034bca9992f4e86fb555b3997', zero results insert row with id '4068f91034bca9992f4e86fb555b3997' =================== Second page visit =================== $_COOKIE: Array ( [WEGNERDE] => 4068f91034bca9992f4e86fb555b3997 ) $_SESSION: Array ( [Config] => Array ( [rand] => 724195738 [time] => 1166640598 [userAgent] => 05c06381cba0c03d1fda664faf636fab ) ) SID: (empty) sessioncomponent Object ( [_log] => [CakeSession] => cakesession Object ( [_log] => [valid] => 1 [error] => Array ( [2] => Config doesn't exist [1] => Session is valid ) [_userAgent] => 05c06381cba0c03d1fda664faf636fab [path] => /index.php/ [lastError] => 1 [security] => high [sessionTime] => 1166640598 [host] => www.[snip].de [cookieLifeTime] => 0 ) [base] => /index.php [webroot] => /wegner/webroot/ [here] => /index.php/users/login ( [controller] => users [action] => login ( ) ( [url] => /users/login ) [bare] => 0 [webservices] => [plugin] => ) [action] => login [data] => [plugin] => ) DB: select id 'c2042ca664205240f5e327762e615d72', 0 results insert new row with id = c2042ca664205240f5e327762e615d72