We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Session expiry (outside CP)

Development and Programming

Andrew Gunstone's avatar
Andrew Gunstone
101 posts
16 years ago
Andrew Gunstone's avatar Andrew Gunstone

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

       
Sue Crocker's avatar
Sue Crocker
26,054 posts
16 years ago
Sue Crocker's avatar Sue Crocker

Andrew, I’m confused. Are you using sessions or cookies? Is this some custom code you’re trying to work with?

       
Andrew Gunstone's avatar
Andrew Gunstone
101 posts
16 years ago
Andrew Gunstone's avatar Andrew Gunstone

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.

       
Sue Crocker's avatar
Sue Crocker
26,054 posts
16 years ago
Sue Crocker's avatar Sue Crocker

Hi, Andrew. I’m moving this thread to the Modules Technical Forum for more community involvement.

       
Andrew Gunstone's avatar
Andrew Gunstone
101 posts
16 years ago
Andrew Gunstone's avatar Andrew Gunstone

Coolio.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.