Re: Setcookie problem in ie 5.0

From: Date: Thu, 07 Dec 2000 13:50:03 +0000
Subject: Re: Setcookie problem in ie 5.0
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-29128@lists.php.net to get a copy of this message
Location of cookie files is system specific. On my NT5 Pro it's C:\Documents and Settings\%Account%\Local Settings\Temporary Internet Files At 00:35 8.12. 2000, Rustam Nabirov wrote the following: -------------------------------------------------------------- >I'm using a login script which sets a cookie and redirects the browser using >"header ("Location")". The page which the browser gets redirected to fetches >cookie values and uses it to identify users. The expiration time is 1 hour. >The script seems to be working fine, however, I don't see any cookies saved >either in C:\WINDOWS\Cookies or C:\WINDOWS\Temporary Internet Files >I'm not sure if this might cause any problem in the future. >I don't want to spend a heck of time creating scripts just to find out later >that some was wrong in this setcookie routine. Has anyone faced the same >thing before? > >Thanks in advance, >Rustam. > >This is a part of the script: > >$expiretime=time()+3600; >$date = date("l, d-M-y H:i:s", ($expiretime)); >setcookie ("per_db_id","$per_id","$date >GMT","/","www.domainname.com",0); >setcookie ("per_db_fname","$per_fname","$date >GMT","/","www.domainname.com",0); >setcookie ("per_db_lname","$per_lname","$date >GMT","/","www.domainname.com",0); >header ("Location: $reflink"); > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >For additional commands, e-mail: php-general-help@lists.php.net >To contact the list administrators, e-mail: php-list-admin@lists.php.net ------end of quote------ ____________________________________________________________ Cynic: A member of a group of ancient Greek philosophers who taught that virtue constitutes happiness and that self control is the essential part of virtue. cynic@mail.cz ICQ: 2808 2505

« previous php.general (#29128) next »