You are here: Re: Sessions - how can I prevent users being logged out when inactive? « PHP Programming Language « IT news, forums, messages
Re: Sessions - how can I prevent users being logged out when inactive?

Posted by Dave Smithz on 07/11/05 11:33

"chotiwallah" <chotiwallah@web.de> wrote in message
news:1121066010.990486.78220@o13g2000cwo.googlegroups.com...
> session.cookie_lifetime = 0 means the cookie will be deleted as soon as
> the browser is closed, which logs the user out.
>
> set it to another value (in sec's, using ini_set()) to keep the user
> logged in longer. but note that this is not sure fire because what the
> users do with your cookie is up to them.

Yes you are right there of course, but in this instance users are being
logged out when they have not closed the browser. In fact they expect that
if they close the browser they will be logged out which is better behaviour.
I need to prevent the time out occurring on a windows which they have kept
open (note this window does use frames if this makes a difference).

Kind regards

Dave

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация