Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Re: (nrd) Cookie expires inaccurately

by BioHazard (Pilgrim)
on Dec 28, 2002 at 15:21 UTC ( #222736=note: print w/replies, xml ) Need Help??

in reply to Re: (nrd) Cookie expires inaccurately
in thread Cookie expires inaccurately

You are right!
The server's time and my local differ. But only ~40 seconds. I hope that is the problem, because now the cookie is set when I try -expires => "+30s" but is not thrown away after this time :(. I am thinking about getting away from cookies, too. Many people have told me great advantages of other session-time verfication.
There is just one point I do not understand (It's silly perhaps): A server in America with 6 hours difference for example (I am from Germany) will give me correct cookie (-times), right? Then how does the server do it?

Thanks for your suggestions :)

reading between the lines is my real pleasure

Replies are listed 'Best First'.
Re: Re: Re: (nrd) Cookie expires inaccurately
by poj (Parson) on Dec 28, 2002 at 19:47 UTC
    The expiry time in the cookie is always GMT.
Re:^3 (nrd) Cookie expires inaccurately
by newrisedesigns (Curate) on Dec 29, 2002 at 14:45 UTC

    It will give you the correct time because it will use GMT.

    You can always check if cookies are set by telneting to your server using port 80, then typing "GET /document.html" replacing "document.html" with the path of your file or CGI. (ie. "GET /cgi-bin/" or "HEAD /cgi-bin/" to get just the headers.)

    Hope this helps.

    John J Reiser

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://222736]
[ambrus]: Today I accidentally cut my hand while carrying a computer. On the display part of the motherboard that sticks out at the back of the chasis and has ports, there's this thin metal sheet with holes cut for the ports, to guide plugs into the sockets.

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2017-01-16 19:32 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (151 votes). Check out past polls.