Re: Sessions, sessions and... sessions
| From: | Puiu Hrenciuc | Date: | Tue, 02 Mar 2004 11:37:41 +0000 |
| Subject: | Re: Sessions, sessions and... sessions | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179223@lists.php.net to get a copy of this message | ||
1. No. If that would be the problem i think that sessions would expire
after the same period of time and not randomly , right ?
2. The site consists in a single page (index.php) that includes
the subpages as needed. The session_start() is at the begining of the
file.
If this would be the problem the sessions would expire on the same
page, right ?
3. No, it is not cross domains. It is on a virtual server thought .
"Richard Davey" <rich@launchcode.co.uk> wrote in message
news:1217899318.20040302112728@launchcode.co.uk...
> Hello Puiu,
>
> Tuesday, March 2, 2004, 11:13:07 AM, you wrote:
>
> PH> The site is working just fine on the development server, but when
> PH> uploading on release server it keeps losing session data and the
> PH> users are logged out of their account in a
>
> Some things to try/think about:
>
> 1. Are your sessions/cookies set to expire after a certain time? If
> so, is the server in a different time zone to your development server?
>
> 2. Are you 100% sure you call session_start() on every page that needs
> it before doing any work with the session variables?
>
> 3. Does your site cross domains? Sessions will not propagate (unless
> you make them).
>
> --
> Best regards,
> Richard Davey
> http://www.phpcommunity.org/wiki/296.html