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