You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Earwig <ea...@taar.com> on 2003/12/09 23:12:52 UTC
Session timeouts
Hey guys. I've used EMBPERL_COOKIE_EXPIRES to expire cookies, but in
some instances I would also like to expire sessions based on inactivity,
not an arbitrary time limit. I'm not spotting the best way to do this.
Any way to do this in embperl, or apache, or Apache::Session settings?
Thanks,
Lars
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Session timeouts
Posted by "Luiz Fernando B. Ribeiro" <lu...@engenhosolucoes.com.br>.
Earwig wrote:
> Hey guys. I've used EMBPERL_COOKIE_EXPIRES to expire cookies, but in
> some instances I would also like to expire sessions based on inactivity,
> not an arbitrary time limit. I'm not spotting the best way to do this.
> Any way to do this in embperl, or apache, or Apache::Session settings?
Store an initial "time" in %udat and on each request compare if the
actual time - initial time > maximum time and them timeout or not the
session.
Hope its clear enough.
--
Luiz Fernando B. Ribeiro
Engenho Soluções para a Internet
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org