Ack! Cookie Problems!

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Ack! Cookie Problems!
Groups: php.general 
Request: Send a blank email to php-general+get-45046@lists.php.net to get a copy of this message
Ok, I'm going through a cookie nightmare. I'm trying to create a session and then cut the user off from the session by setting the expiration of the cookie that I send out using session_set_cookie_params(). Here's my code: /* Start session and unset any previous session variables */ session_start(); session_unset(); session_set_cookie_params(time() + $cookie_expire * 60); // Parameter is in seconds The cookie never expires though! I set $cookie_expire to 1 (should expire in one minute) and I can keep right on accessing pages. BTW, all the pages do a session_start and check for a variable at the beginning and redirect to the login page if the var is not found. Does anyone know what's up with this? Thanks for your help in advance. -- Michael Champagne, Software Engineer Capital Institutional Services, Inc. wk: mchampagne@capis.com hm: mchamp@texas.net ****************************************************************** This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction, unless specifically agreed otherwise. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect the views or opinions of Capital Institutional Services, Inc. Capital Institutional Services, Inc. accepts no liability for any errors or omissions arising as a result of transmission. Use of this communication by other than intended recipients is prohibited. ******************************************************************

« previous php.general (#45046) next »