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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logout

Status
Not open for further replies.

BenRussell

Programmer
Mar 12, 2001
243
US
I am making a logout script, but when I logout, and then try to log back on, it wont work.

I am using the following code to set the cookie :
print "Set-Cookie: Information=$Information; expires=Mon, 6-Feb-2045 00:00:00 GMT; path=/\n";

and the following to try to delete it :
print "Set-Cookie: Information=X|X|X|X; expires=Sat, 1-Apr-2001 00:00:00 GMT; path=/\n";

1-Apr-2001 is a previous date so it should delete automatically, but does not seem to be doing so. What should I do? - Ben Russell
- President of Intracor Technologies (
 
I'm not sure about it, but maybe your problem is the different values you are assigning to "Information" when you're setting and deleting the cookie.

Another problem could be, that you're deleting and setting the cookie in one go, and that causes some confusion.

Good Luck

Søren
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top