PHP Session debug script
This script will test PHP SESSIONS functionality. Use links below:
- Press REFRESH and sessions should be EXISTING and READABLE
- Press PHPINFO to see all PHP related settings
Check, if we have existing SESSION or should create new one: New session created! This is normal only at FIRST page load.
If you get NEW SESSION after each page reload, check:
- Are SESSION files really created in SESSION save path?
- If they are, check in PHP.INI if you have session.cookie_secure maybe set to ON; this will work only on HTTPS pages!
SESSION content:
Array
(
[time] => 1696233861
)
SESSION id: 86h8k5l03qiea06ppdoedua1i3
SESSION cache expire: 180
SESSION get cookie parameters:
Array
(
[lifetime] => 0
[path] => /
[domain] =>
[secure] =>
[httponly] =>
)
SESSION debug:
Session identifier is: 86h8k5l03qiea06ppdoedua1i3
Can read from file: /var/www/clients/client1/web11/tmp/sess_86h8k5l03qiea06ppdoedua1i3 = OK :)
Data is:
Click here to refresh the page
Click here for phpinfo()