Re: [PBML] Re: sessions expiry
- Thank you for your suggestion.
> --- In email@example.com, cgiperl <amancgiperl@n...> wrote:
> > Hi All
> > I need to implement sessions with autorefresh.
> > What I want to do is as follows
> > User is at Page index.pl - create a session with timestamp parameter
> > User browses the website and ends up at (say) somepage.cgi for 30 secs
> > At the end of 30 secs I want to kick them off to index.pl
> > I have implemeted sessions and can carry and retrive values use
> > CGI::Session but need to know how do I automatically kick them out
> > a given amount a time (30 secs in this case)
> > Help appreciated.
> > Thanks
> Could you use a meta tag to redirect to index.pl after 30 secs. If the
> user moves to another page within 30 secs they will not be redirected.
> The meta tag goes in the HTML header area:
> meta http-equiv="Refresh" content="30;url=/index.pl"
> (obviously angle brackets around this line; I excluded them to ensure
> you could see the 'code')
Which means it doesn't work in my preferred browsing environment, or
behind security firewalls around the world.
hopefully, you aren't inconveniencing the user if they chose not to
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!