PDA

View Full Version : Where is the "Remember Me" Code


candeos
01-20-2008, 05:19 PM
Hello

I am using a learning site and VB that work together.

I want to make the cookie on the learning site have the same expiration parameters that the VB site has , so I was wondering where I can find the cookie code that is part of the Remember Me checkbox

Thanks in advance for the help!

Dave

Dismounted
01-21-2008, 04:05 AM
$password = md5(md5($password) . $salt);

setcookie(COOKIE_PREFIX . 'userid', $userid, time() + 14400);
setcookie(COOKIE_PREFIX . 'password', md5($password . $license), time() + 14400);

candeos
01-21-2008, 11:21 AM
Thanks for the information....

If it is set to time + 14,400, doesnt that make it expire after 40 hours ( assuming 14,400 is seconds?)

We set our cookie to time() +60*60*24*365 and it seems to be expiring..

Thanks!

Dave

badran
01-25-2008, 09:36 PM
The cookie is set, but for some reason is ignored when a new session is set.. any ideas?