Hi all,
I am using the session cookie (cookies only is set under “User session type”) to track a custom shopping cart module that I have written. It seems to be timing out a little bit too quickly though (especially with Windows browsers…not sure if this is relevant).
Is there a way to extend the life of the session? The session is clearly less then the time the browser window is open. I think normally it is set to about 20 mins PHP…but this seems a lot less.
I had originally built this using a custom cookie (which I could control the expiry). I can’t remember the exact reason I had to change it, but I think it had something to do with the use of Paypal.
Anyway, any help would be appreciated.
Cheers Andrew.
Moved to Modules: Technical Assistance by Moderator
Apologies Sue. It was midnight when I wrote that, and was a bit tired. I am in fact using sessions (i.e. $_session[‘shopping_cart’]).
I mentioned cookies as this is the way I have set EE to save the session id.
I guess my question is…is there a way to extend the session expiry through the EE CP, or should I be putting in some PHP into my module code?
Cheers.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.