Re: Extending session timeouts manually
| From: | Chris | Date: | Thu, 11 Jan 2007 01:01:56 +0000 |
| Subject: | Re: Extending session timeouts manually | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-246880@lists.php.net to get a copy of this message | ||
Ryan Fielding wrote:
Ryan Fielding wrote:What about other session settings? Check a phpinfo page and see what your other settings are.Chris wrote:Ryan Fielding wrote:It's currently set to the default 180 minutes.I'm using a session to save cart contents within a store, and this session follows the user as they proceed through the checkout. My problem is, if a customer orders say 10 items, they have the option to input 10 different addresses that these items will be delivered to. I've noticed that some sessions are timing out before the user can finish entering in all the details. I thought that maybe a tiny iframe calling a page that used <Meta Http-equiv="Refresh" Content="300"> to refresh the iframe every 5 minutes, but no such luck. Does anyone know of any thing else i can try to stop this from happening?What's the session expiry time set to? Try setting it manually? See http://www.php.net/manual/en/function.session-cache-expire.php
In regards to this, i would like to keep it at 180 minutes, but only extend it for certain instances where the customer is taking a long time to enter the details.How are you going to know that? Have a checkbox on the page - 'are you going to take a long time to fill in this form?' ;) (Yeh bad joke :P). -- Postgresql & php tutorials http://www.designmagick.com/