Monday, June 24, 2013

CakePHP 1.3 Session Timeout

Hi, I need to test what happens on my page when the session is gone.

for that test I have changed some values on my core.php.

session.timeout = 1
security.level = low

Session Lifetime = 1 * 300 = 300 seconds (5 minutes)

then a guy showed me that the calc for cookie lifetime is diferent, something like this,

session.timeout * security.level * 60

in my case, that would be, 1 * 300 * 60 = 300 minutes (5 hours), that calculation is correct since i see the cookie in my browser and that's it's going to expire 5 hours after being created.

My question is, I go to my page, which is 30 text fields, I fill those fields and wait more than 5 minutes to send, when I click send, it still gets through, no errors at all, but I should have lost my session after 5 minutes.

Am I correct with this? is my cookie overwritting my session value?

Thanks a lot.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: