CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
HTTP_COOKIE MONSTER

 



cadtoon
Deleted

Jul 1, 2000, 8:20 PM

Post #1 of 3 (312 views)
HTTP_COOKIE MONSTER Can't Post

Hello,
I have been working on a script that stores information in $ENV{'HTTP_COOKIE'}. I can see this ENV is getting larger and larger.
How can I clear it out?

Bob


DrZed
User

Jul 2, 2000, 6:21 AM

Post #2 of 3 (312 views)
Re: HTTP_COOKIE MONSTER [In reply to] Can't Post

I assume you mean by something other than deleting your cookie file(s).

Well, all you need to do in order to delete a cookie record would be to 'save' the cookie with an expiration date that is either already expired or is the current time.

Unfortunatly, this won't necessarily delete the data. It only lets the browser know that it is ok to delete the data if it wishes to. Not all browsers will delete expired cookies. Perhaps they wait until the bin is full before tossing its cookies.

So, in essense, you can't delete a cookie (without actually accessing the computer directly), you can only tell a browser to delete it and let it worry about compliance.

If your concerned about clearing the data, when you re-write the cookie, write it without data.

Dr. Zed


cadtoon
Deleted

Jul 2, 2000, 2:57 PM

Post #3 of 3 (312 views)
Re: HTTP_COOKIE MONSTER [In reply to] Can't Post

Now I feel stupid..... LoL
I thought that this was imformation keeped in the server's enviroment. Like the old DOS set command. Now it's making sense.

Deleting them off my own system cleared it up.

Thanks alot DrZed,

Bob

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives