RE: [PHP] Re: Sessions Getting Broken

2001-09-11 Thread Niklas Lampén

session_start();
if (!session_is_registered("Session")) {
toStart(2);
exit;
};
$Session = $GLOBALS[Session];


This is what I do on every page. I don't think it's timeout, since the
session might get broken just after 5 minutes.
function toStart() is used to move user to the login page with an error
code.


Niklas


-Original Message-
From: _lallous [mailto:[EMAIL PROTECTED]]
Sent: 11. syyskuuta 2001 14:35
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Sessions Getting Broken


Can't tell like that
No more ideasmaybe somecode would help?!

"Niklas lampén" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hmm.. How do I know how fast they timeout? And it seems that all of my
users
> drop at the same time, not sure about it thou.
>
> session.cache_expire is set to 180.
> session.cookie_lifetime is 0.
>
> Maybe those do tell you something and you tell me more! :)
>
>
> Niklas
>
> -Original Message-
> From: _lallous [mailto:[EMAIL PROTECTED]]
> Sent: 11. syyskuuta 2001 13:09
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Sessions Getting Broken
>
>
> Maybe it's getting timed out?
>
> "Niklas lampén" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I have a database update system and I regonize users with sessions.
> > Sometimes sessions just broke with no sane (for me at least) reason.
> >
> > Any ideas what may cause this, it's pretty anoying if you have updated
20
> > fields, try to submit the form and then you get kicked out of the
> system!?!
> > Otherwise my sessions work great. :)
> >
> >
> >
> > Niklas
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: Sessions Getting Broken

2001-09-11 Thread _lallous

Can't tell like that
No more ideasmaybe somecode would help?!

"Niklas lampén" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hmm.. How do I know how fast they timeout? And it seems that all of my
users
> drop at the same time, not sure about it thou.
>
> session.cache_expire is set to 180.
> session.cookie_lifetime is 0.
>
> Maybe those do tell you something and you tell me more! :)
>
>
> Niklas
>
> -Original Message-
> From: _lallous [mailto:[EMAIL PROTECTED]]
> Sent: 11. syyskuuta 2001 13:09
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Sessions Getting Broken
>
>
> Maybe it's getting timed out?
>
> "Niklas lampén" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I have a database update system and I regonize users with sessions.
> > Sometimes sessions just broke with no sane (for me at least) reason.
> >
> > Any ideas what may cause this, it's pretty anoying if you have updated
20
> > fields, try to submit the form and then you get kicked out of the
> system!?!
> > Otherwise my sessions work great. :)
> >
> >
> >
> > Niklas
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Re: Sessions Getting Broken

2001-09-11 Thread Niklas Lampén

Hmm.. How do I know how fast they timeout? And it seems that all of my users
drop at the same time, not sure about it thou.

session.cache_expire is set to 180.
session.cookie_lifetime is 0.

Maybe those do tell you something and you tell me more! :)


Niklas

-Original Message-
From: _lallous [mailto:[EMAIL PROTECTED]]
Sent: 11. syyskuuta 2001 13:09
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Sessions Getting Broken


Maybe it's getting timed out?

"Niklas lampén" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have a database update system and I regonize users with sessions.
> Sometimes sessions just broke with no sane (for me at least) reason.
>
> Any ideas what may cause this, it's pretty anoying if you have updated 20
> fields, try to submit the form and then you get kicked out of the
system!?!
> Otherwise my sessions work great. :)
>
>
>
> Niklas
>



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]