Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cookie Configuration - they stay logged in


krohn

Recommended Posts

What I'm trying to do is set it so that they will be cookied for say 30 days. Anytime they visit the site they're logged back in.

 

In catalog/classes/sessions.php

 

I've found var $cookie_lifetime = 0;

I set this to 30 and it isn't keeping the person logged in. Has anybody out there done this?

 

Thanks,

Martin

Link to comment
Share on other sites

The next thing I found was in includes/application_top.php

 

if (function_exists('session_set_cookie_params')) {

session_set_cookie_params(0, substr(DIR_WS_CATALOG, 0, -1));

 

I'm having trouble finding where OSC sets the cookie timeout

Link to comment
Share on other sites

I'm not sure....

 

I just tried a really high number to see if this is even the right variable for me to be playing with.

var $cookie_lifetime = 3650000;

 

I've pulled up the Mozilla cookie manager and it tells me the cookie expires at the end of the session. What I want to do is make that cookie expire like say 30 days in the future.

 

I'm not sure where I even need to be editing right now. I'm using dreamweaver to search the whole directory for words like cookie and expire and taking a look at various places the searches pull up. I've searched the forum and taken a look through the contributions and I haven't found anything that covers this yet. I am still searching though :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...