Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cookie expiry problems

Status
Not open for further replies.

teroy

Programmer
Oct 17, 2000
67
AU
Hi there,
I have troubles resetting cookie expiry time in IE and some
versions of Netscape on Linux.

The code i use is as follows

$the_cookie = cookie(-name=>'sid',
-value=>$session_id,
-expires=>'+2m',
-domain=>'.vicnet.net.au',
-path=>'/');

print header(-cookie=>$the_cookie);

Time passes..........The user hits on a log out button and the same code is
called..but the expires variable gets reset to '1s' .My problem is...that it
doesn't take this into account..and keeps the cookie active till the 2
minutes have passed.

Has anyone come across this problem..?

 
any possibility that you have the page cached locally or that you are getting the old version back from a cache server????

'just a thought.


keep the rudder amid ship and beware the odd typo
 
ahh figured out what the prob was
IE didn't like my using '+1s' as an expiry time after it had already being set. However..it worked fine when i gave it a date value in the year 2000 as a date string
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top