Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
It does not automatically go to login.aspx
Message
De
04/12/2004 13:30:36
 
 
À
03/12/2004 21:56:40
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
ASP.NET
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Oracle
Divers
Thread ID:
00966887
Message ID:
00966915
Vues:
8
>Dear All,
>I have set the timeout attribute in my web.config file to
>1. I also have set the Session_End event handler has:
>
> Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
> ' Fires when the session ends
> Response.Redirect("login.aspx")
> End Sub
>
>The timeout has occured but it does not automatically go to login.aspx ..I mean I have to refresh the page manually (by pressing F5 or go to View -> Refresh)
>
>how to deal with this.. please advise
>
>Regards
>Winanjaya

First, the sessions and the authentication ticket have seperate timeouts. Authentication times out based on the code you use in the login page to create the authentication ticket.

Second, you can't control the client from the server like that. The session can/will timeout without a response. You user could have turned of their PC, then 20 minutes later their session times out which is when Session_End will fire.

Form authentication will automatically redirect a user back to the login screen if their authentication has timed out the next time the make a request to the server (as you have observed).

BOb
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform