Re: setcookie doesn't save session properly
| From: | comex | Date: | Sat, 17 Dec 2005 03:17:39 +0000 |
| Subject: | Re: setcookie doesn't save session properly | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-227571@lists.php.net to get a copy of this message | ||
> I'm using
> setcookie($sessionName, $sessionid, time()+60*60*24*10000,
> $sessionCookie['path'], $sessionCookie['domain'],
> $sessionCookie['secure']);
>
> to, obviously, store a session.
> Also, I only use session_start() so perhaps I'm supposed to call
> session_id()?
I'm not sure why the cookie is being mis-saved, but sessions ARE
supposed to save the cookies automatically.