Jim Goh wrote: > Hi, > If I have web site and all the pages are under directory called > www.mysite.com/test. Assume this directory "test" is access by > username and password. After user enter the directory and view all > the pages. However if user not touch the pages under this directory > for more than 10 mins, then I want auto expire the session, then ask > user to log in again from begin. If there any way to set this up with > PERL? Thanks for your help.
If you're using Basic Authentication (i.e. .htaccess file), you can't do it. If you're managing the sessions yourself, you have to keep track of the last request time per session. When a new request comes in, if it's been longer than 10 minutes, you need to clear the session and redirect them to the login page. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>