krohn Posted April 21, 2003 Share Posted April 21, 2003 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 More sharing options...
krohn Posted April 21, 2003 Author Share Posted April 21, 2003 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 More sharing options...
Jason Jacobs Posted April 21, 2003 Share Posted April 21, 2003 Is cookie_lifetime going to make it in days? I think cookie lifetimes are in seconds... -j Link to comment Share on other sites More sharing options...
krohn Posted April 21, 2003 Author Share Posted April 21, 2003 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 More sharing options...
krohn Posted April 21, 2003 Author Share Posted April 21, 2003 I just found http://www.oscommerce.com/community/contri...ions,338/page,2 Auto Login.... It's hard finding things in the user contribution section cause there's so many ;) I'm downloading this contribution now but it looks like it'll do what I'm looking for! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.