Reply to Re: PHP sessions time out too quickly

Your name:

Reply:


Posted by Gleep on 06/21/07 01:20

On Wed, 20 Jun 2007 12:49:36 -0400, Jason Maur <jmaumau@yahoo.com> wrote:

>Hey all,
>
>I'm having a problem with PHP sessions. Users
>(including myself) are having their sessions expire
>after only a couple minutes, despite session.gc_maxlifetime
>being set to 1440 (24mins?). Any general ideas on what
>would cause a session to terminate? I'm using a lot of
>javascript (mootools) to do some AJAX stuff. Maybe that
>has something to do with it? Any help / suggestions would
>be appreciated...


i set mine this way 300 minutes
ini_set("session.gc_maxlifetime", "18000");

if you still have timeout issues
might be better to change to cookie based system

i've had time out issues - and resorted to setting cookie for user logins
and still used sessions for saved searches and paging, things like that

[Back to original 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

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