surej ns wrote:
> Hi all,
>  
>
> My project requires a method to handle session time out so that i 
> could redirect to a custom page when session is timed out .where 
> should i write the function or ...Is there  any built in function 
> which handles session time out. I am really stuck in my project .So 
> Plz help to get it
>
>  
>
Hello Surej,

There are different ways of achieving that.

First of all, there's no "session timeout" per se. If your session times 
out, it disappears and you can't tell whether the user was previously 
logged in or not. There are two principal things that are usually done 
for session timeout handling:

1) Javascript/HTML redirect that times out after a while. The timer is 
private to every HTML document and so it is reset every time the browser 
loads a page. In this fashion, if the user leaves the web application 
open, the script can log him/her out automatically

2) A separate cookie with lifetime longer than that of the session. If 
the session for the user is missing, but the marker cookie is present, 
you can assume that this user's session has expired. Such cookies 
typically carry a login username, to assist the browsers that don't do 
password storage
>
> thanks
>
> surej
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.agavi.org/mailman/listinfo/users
>   


_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to