Try it without the -expires option and see if it works. You are using an expiry of 10 minutes which is not very long. A discrepancy between your server clock, and your clients workstation clock could expire the cookie immediately. Remember that it is up to the Client to decide when the cookie should be expired, and it will use it's own clock to decide that.
One way around this problem is to always use the clients time to set expiry times in your cookies. That means using a little bit of JavaScript on your login page to get the workstation's idea of what time it is, and set the expiry at 10 minutes plus that time.
I believe that some servers pass a Date: header in the response (apache does), but I do not know if client side browsers actually use this header to determine cookie expiry timeouts. I would be interested to know if someone has any details on that.
- Cees
In reply to Re: Weirrd Cookie Problems
by cees
in thread Weirrd Cookie Problems
by batkins
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |