<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">Hi Ben,<br><br>thanks! But I have tested it and, in fact, is $c->session_expires. <br>$c->session->session_expires does not work at all.<br><br><div> </div>David<div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">De:</span></b> Ben Hitz <hitz@genome.stanford.edu><br><b><span style="font-weight: bold;">Para:</span></b> The elegant MVC web framework <catalyst@lists.scsys.co.uk><br><b><span style="font-weight: bold;">Enviado:</span></b> jue,15 abril, 2010 18:59<br><b><span style="font-weight: bold;">Asunto:</span></b> Re: [Catalyst] Check is session is expired<br></font><br>
$c->session->session_expires) returns 0 when the session is expired (and deletes the session).<br><br>Caveat: I am brand new - never installed the sw, but I was JUST reading this in the docs.<br><br>Ben<br><br>On Apr 15, 2010, at 8:33 AM, David wrote:<br><br>> Hi,<br>> <br>> Is there any method in order to check if user session has expired, so that user is redirect to login page?<br>> Something like $c->session->is_expired which returns true or false?<br>> <br>> I've checked Catalyst Session Plugin, but I havem't found any method to check if session has expired.<br>> <br>> David<br>> <br>> <br>> _______________________________________________<br>> List: <a ymailto="mailto:Catalyst@lists.scsys.co.uk" href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a><br>> Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst"
target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>> Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>> Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br><br>--<br>Ben Hitz<br>Senior Scientific Programmer ** Saccharomyces Genome Database ** GO Consortium<br>Stanford University ** <a ymailto="mailto:hitz@genome.stanford.edu" href="mailto:hitz@genome.stanford.edu">hitz@genome.stanford.edu</a><br><br><br><br><br>_______________________________________________<br>List: <a ymailto="mailto:Catalyst@lists.scsys.co.uk" href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a><br>Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst"
target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br></div></div>
</div><br>
</body></html>