Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Cookie time again *eats cookie*

by kal (Hermit)
on Dec 27, 2003 at 20:56 UTC ( [id://317222]=note: print w/replies, xml ) Need Help??


in reply to Cookie time again *eats cookie*

Hi sulfericacid,

Others have attempted to show you problems with the script, so I won't bother. But, I do think you are having problems with what cookies actually are - for example, you say "I know cookies are gone the minute the window is closed": well, no, not quite. Some are, some aren't. If you set one to last two years, it should last that long come what may.

What browser do you use? If you have something like Mozilla or Epiphany, you can actually look at the cookies themselves quite easily. This will allow you to actually check whether or not the cookie is being set. This is quite important - you could have two errors in your script. You're not going to read back the cookie if you don't manage to set it, and it you're both not setting it correct nor reading it back correctly, then you will mess around for ages and probably not get anywhere.

Always best to try to narrow the problem down to as small an area as possible. If you can check the cookie is being set, then you know you have a problem reading the cookie back. If it's not, you know you're not setting it.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://317222]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-03-29 08:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found