Page 1 of 1

SESSION Time Out Error

Posted: Wed Feb 06, 2008 8:20 pm
by jeffrydell
I have a multi-form application which uses sessions to store data until the user reaches "the end" (this is the current LIVE version of my app, not the OOP version which is in development) ... I'm starting to encounter folks who like to start the process, go visit their neighbor for a glass of iced tea, then come back and try to finish up their registration.

Needless to say, their session 'times out' and they end up seeing a bunch of var not found errors.

What can I implement to handle this better? In my perfect world, they should just get a message on screen telling them the session has gone idle ... please start over AND DON'T TAKE A NAP IN THE MIDDLE OF THE PROCESS!

Any thoughts? Thanks, as always, for any help you can offer!

Jeff

Re: SESSION Time Out Error

Posted: Wed Feb 06, 2008 11:14 pm
by Festy
What about using cookies instead? Easy to handle and you can make the session time out whenever you want.

Re: SESSION Time Out Error

Posted: Wed Feb 06, 2008 11:35 pm
by Christopher
The first place to check it the manual. That session chapter is a real page turner! I don't know if they get rescued after the bridge washes out, bit is exciting. And the examples are pretty good.

http://www.php.net/manual/en/ref.session.php

If the problem is just IE then this may help:

Code: Select all

session_cache_limiter('must-revalidate');