Re: [PHP] Explanation of cookie behavior
David A. Stevens wrote: Please remove my address from any future correspondence about PHP. Allrighty then. I warned ya Davey...you're on yer way to /dev/null. If you're lucky, I won't post your email to any porn lists or USENET. -- *** * _ __ __ __ _ * John Nichel * * | |/ /___ __ \ \/ /__ _ _| |__ ___ __ ___ _ __ * 716.856.9675 * * | ' / -_) _` \ \/\/ / _ \ '_| / /(_-_/ _/ _ \ ' \ * 737 Main St. * * |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150 * * |___/ * Buffalo, NY * * http://www.KegWorks.com[EMAIL PROTECTED] * 14203 - 1321 * *** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Explanation of cookie behavior
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Friday 16 Apr 2004 18:18, John Nichel wrote: David A. Stevens wrote: Please remove my address from any future correspondence about PHP. Allrighty then. I warned ya Davey...you're on yer way to /dev/null. If you're lucky, I won't post your email to any porn lists or USENET. But I might ;) - -- Elfyn McBratney, EMCB mailto:[EMAIL PROTECTED] http://www.emcb.co.uk/ PGP Key ID: 0x456548B4 PGP Key Fingerprint: 29D5 91BB 8748 7CC9 650F 31FE 6888 0C2A 4565 48B4 When I say something, I put my name next to it. -- Isaac Jaffee ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Linux london 2.6.5-emcb-241 #2 i686 GNU/Linux ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAgDJvaIgMKkVlSLQRAnKOAJ48FP60qgOpjGegMs2+UnUGDdbEYACfSjYS 8tLVxnY5/Si80AoJeS1M4Qw= =HjAU -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] *******Re: [PHP] Explanation of cookie behavior
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Friday 16 Apr 2004 18:18, John Nichel wrote: David A. Stevens wrote: Please remove my address from any future correspondence about PHP. Allrighty then. I warned ya Davey...you're on yer way to /dev/null. If you're lucky, I won't post your email to any porn lists or USENET. But I might ;) - -- Elfyn McBratney, EMCB mailto:[EMAIL PROTECTED] http://www.emcb.co.uk/ PGP Key ID: 0x456548B4 PGP Key Fingerprint: 29D5 91BB 8748 7CC9 650F 31FE 6888 0C2A 4565 48B4 When I say something, I put my name next to it. -- Isaac Jaffee ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Linux london 2.6.5-emcb-241 #2 i686 GNU/Linux ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAgDJvaIgMKkVlSLQRAnKOAJ48FP60qgOpjGegMs2+UnUGDdbEYACfSjYS 8tLVxnY5/Si80AoJeS1M4Qw= =HjAU -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Explanation of cookie behavior
Ryan Schefke wrote: setcookie (login_ck, $lo, time()+ 60*60*24*30, , , 0); //set cookie for login, for 30days Expire is supposed to be an integer. Try... setcookie (login_ck, $lo, time()+ 2592000, , , 0); -- *** * _ __ __ __ _ * John Nichel * * | |/ /___ __ \ \/ /__ _ _| |__ ___ __ ___ _ __ * 716.856.9675 * * | ' / -_) _` \ \/\/ / _ \ '_| / /(_-_/ _/ _ \ ' \ * 737 Main St. * * |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150 * * |___/ * Buffalo, NY * * http://www.KegWorks.com[EMAIL PROTECTED] * 14203 - 1321 * *** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Explanation of cookie behavior
John - It works now! That was it. Thanks! Ryan -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 10:53 AM To: PHP Mailing List Subject: Re: [PHP] Explanation of cookie behavior Ryan Schefke wrote: setcookie (login_ck, $lo, time()+ 60*60*24*30, , , 0); //set cookie for login, for 30days Expire is supposed to be an integer. Try... setcookie (login_ck, $lo, time()+ 2592000, , , 0); -- *** * _ __ __ __ _ * John Nichel * * | |/ /___ __ \ \/ /__ _ _| |__ ___ __ ___ _ __ * 716.856.9675 * * | ' / -_) _` \ \/\/ / _ \ '_| / /(_-_/ _/ _ \ ' \ * 737 Main St. * * |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150 * * |___/ * Buffalo, NY * * http://www.KegWorks.com[EMAIL PROTECTED] * 14203 - 1321 * *** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Explanation of cookie behavior
On 15 April 2004 15:43, Ryan Schefke wrote: I'm running a login script where the user enters login/password and if it matches what I have in my db and their account is active, I set a login cookie (login_ck) and an authentication cookie (authenticate_ck). If the login and authentication cookies are set when the user goes back to the login page I prompt with welcome back.. Now, I refresh the login page a few times, sometimes it gives the welcome back prompt. Then after anywhere from 2-5 refreshes, it deletes the login cookie but the authenticate cookie persists. Any ideas why this is happening? I'm setting my cookies like this: setcookie (authenticate_ck, $daysRemaining); //set cookie for active account, for 30days setcookie (login_ck, $lo, time()+ 60*60*24*30, , , 0); //set cookie for login, for 30days You're quoting all sorts of things that shouldn't be. The above should read: setcookie (authenticate_ck, $daysRemaining); //set cookie for active account, for 30days setcookie (login_ck, $lo, time()+ 60*60*24*30, , , 0); //set cookie for login, for 30days Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php