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 on 07/13/05 15:57

("Dave Smithz" <SPAM FREE WORLD>) decided we needed to hear...
>
> "Dave" <dave@REMOVEbundook.com> wrote in message
> news:23beq2-v8s.ln1@fawlty.homelinux.net...
> >>
> >> For the pages where you change the session settings, you probably also
> >> want to
> >> specify an alternate session.save_path to isolate those session files
> >> from the
> >> rest of the server.
>
> So from all of this, am I right in thinking the best thing to do is use a
> different session.save_path and that will prevent my session information
> being cleared up by the garbage collector and therefore my session dieing
> early problems solved?
>
> Kind regards
>
> Dave

You're actually quoting Andy Hassall's words, not mine.

However, yes its best to change session.save_path so that your session
files are not lumped in with all the other session files on the server,
but that in itself will not stop the garbage collector from doing its
job at the default interval - you must *also* change the
session.gc_maxlifetime and session.cookie_lifetime values as per
previous postings.
--
Dave <dave@REMOVEbundook.com>
(Remove REMOVE for email address)

 

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

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