PDA

View Full Version : Remember State



davuart
22 Aug 2012, 7:02 AM
I'm hoping I'm in the right place for some guidance with this one?
We've built a crm app, works fine - however after sitting inactive for a while the system seems to lose state (drops cookies) I've looked at everything and can not see what the problem is. Cookies are set to persistent so should not timeout.
Has anyone else come across the same problem.

scottmartin
22 Aug 2012, 9:27 AM
What is your server set for? eg: PHP defaults to 24 min. Do you check to see if the session is still valid from the server? (ajax request).

You can also check at the client level:
https://market.sencha.com/users/25/extensions/19

Scott.

davuart
22 Aug 2012, 10:07 AM
Many thanks for the response.
We store a unique string in a field and the cookie so if session is lost it will auto login, quite complex but does normally work - we think it maybe the field which stores the value has not been set with a long enough value so is missing the final part of the unique code so can not match up.

We are also going to look at the inactivity monitor you have sent the link for as that would be a great feature to incorporate.

again thanks for the help - appreciated.