On mandag 25 april 2005, 17:33, [EMAIL PROTECTED] wrote: > I am using the BasicSession plugin and would like to set a timeout > which should occour if the user has been inactive for a certain > period of time. After reading the Docs, All I could find was the > BasicSessionCookie parameter.
Yup.... > However, setting this seems to cause > every single new page request to generate it's own new session file, > which kind of makes the whole point of sessions a bit pointless. Which version of BasicSession are you looking at? In the most recent version, 0.22, I added a little piece about exactly this problem, as I struggled with it before taking over maintenance of the module. Basically, what you've got, is what Apache::AuthCookie provides for the purpose, and essentially, for this, you can set: PerlSetVar BasicSessionCookieExpires to a value, specified in CGI::Cookie. It'll set a cookie, with a expiry time as you desire, and the session will be kept and used for subsequent requests until the expiry time. > Also, even if it did work properly (assuming I'm not doing something > wrong here) it seems that the value you set would be relative to the > time the session was first created, rather than the time it was last > accesed... Yeah... I haven't read the specs, but I have come to believe that is how it was designed. I guess you could modify the cookie on each request and set a new expiry time. Others are welcome to chime in here... I really have no good answer to this. BTW, rather than replying and deleting the subject of a previous post to the list, you should just grab the address and post a new one. Allthough you don't see it, the In-Reply-To header is retained in your post which is what some mail readers use to thread posts (a very nice feature), so if someone has marked a thread as ignored, your post will be ignored too. This isn't very important on this low-volume list, but it really is on high-volume lists. Cheers, Kjetil -- Kjetil Kjernsmo Astrophysicist/IT Consultant/Skeptic/Ski-orienteer/Orienteer/Mountaineer [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Homepage: http://www.kjetil.kjernsmo.net/ OpenPGP KeyID: 6A6A0BBC --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]