RE: [Phplib-users] sessions expire sooner that set?
Brought to you by:
nhruby,
richardarcher
|
From: Layne W. <la...@if...> - 2002-05-06 16:02:38
|
> Hello, I have a little problem here that I cannot solve > alone. Maybe you > can help me. I use on my pages phplib's auth, sess, user and > perm. After > logging in everything works as expected. I use in auth class > this: var > $lifetime = 525600; But anytime I close my broswer and open the pages > again, the url switches to ...php?session=XXXXXXXXXXXX, > although I use > cookies for sessions. After logging in the url is normal > again [running > cookies] and everything is OK now [Until next day anyway]. Unless you are setting the *session* lifetime, session will use *session* cookies in memory - not written to the filesystem. When you close your browser, you destroy the session cookies and your only link to the session that the auth is tied to is gone. It sounds to me like you want to manually create a hard cookie for the user and write a preauth function based on that. See the list archives for more discussion of preauth(). Layne Weathers Ifworld Inc. |