You are here: how could i keep the session and use fewer system resource « PHP Programming Language « IT news, forums, messages
how could i keep the session and use fewer system resource

Posted by Gucci on 08/22/06 05:30

I need to realize such an effect. if one user has login, the session
will keep until he logout.
but if i change the set of session.gc_maxlifetime it will take too much
system resource.

i plan to create a session and insert session_id, session_data into
database
and create the cookie set the lifetime = 9999999999
then when the user visit the site again, i read the cookie first to
sure has he logined
and match the data with the database.

i don't know the plan will affective or not.

ps. i don't know if i change the value of session.cookie_lifetime,
which will change the default cookie lifetime in the cookies.

 

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

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