Re: [PHP] setcookie doesn't save session properly

2005-12-16 Thread comex
> I'm using
> setcookie($sessionName, $sessionid, time()+60*60*24*1,
> $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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] setcookie doesn't save session properly

2005-12-16 Thread nhiemenz
I'm using
setcookie($sessionName, $sessionid, time()+60*60*24*1,
$sessionCookie['path'], $sessionCookie['domain'],
$sessionCookie['secure']);

to, obviously, store a session. The problem is that this always times out
after 24 hours, and I can't figure out why.
Is there something I'm missing? ie, perhaps this doesn't save a session
itself, so the session still gets deleted. But then why does the session
stick around for 24 hours even if the browser is closed? Sessions used to
time out when the browser was closed before adding this.

Also, I only use session_start() so perhaps I'm supposed to call
session_id()?

Thanks,
Realm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php