Re: cookie questions
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: cookie questions

From: Carl Vondrick <spammers@suck.com>
Date: Mon May 01 2006 - 07:52:37 CEST

Eman wrote:
> 1. When i do setcookie ($vname, $vvalue, time() + 600, "/");
> it's saved well, but the cookie does not expire after ten
> minutes as it supposed to be (testing with IE6). What's wrong?
You're using Internet Explorer. This would be a client side problem. You
should check how the cookie appears in IE and when it will expire in one of
the control panels.

> 2. When i do setcookie (..); and after that (below in the
> end of the same script) send a header("Location: $goto");
> the cookie is not saved. I've create a workaround. But...
> Is it normal behaviour? I can't find clear information on
> this in the PHP Manual. Can someone clarify this?
This is a known bug in PHP on Windows servers. The cause is Microsoft and
the solution is Linux.

Most of your problems are (probably) caused by Microsoft. :-)

-- 
Carl Vondrick
Web-Enginner
www.CarlSoft.net
To contact me, please use my website.
Received on Mon May 1 03:08:24 2006