session_set_cookie_params
| From: | Andrew Proud | Date: | Thu, 15 Mar 2001 17:26:22 +0000 |
| Subject: | session_set_cookie_params | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-49004@lists.php.net to get a copy of this message | ||
Hi
My site works fine on my own web server, but when I move it to my Host I get
errors in the header when I am trying to start a session. I am sure that
this used to work before the weekend. It just seemed to stop whilst my host
is saying that they have changed nothing.
I get an error that includes
Set-Cookie: PHPSESSID=4142f0866290be140caf28d527596edf; path=/ Expires: Thu,
19 Nov 1981 08:52:00 GMT '
My host says I need to put a session_set_cookie_params line before I start
the session.
Firstly - does this sound right ?
Secondly - If the cookie is only for the life of the sesion what should I
set it to.
Thirdly - Can anybody explain how it is working on my server but not on my
hosts.
Any help will be greatly appreciated.
Thanks
Andy