Ask a Question related to ASP.NET General, Design and Development.
-
Burak Kadirbeyoglu #1
session_end and re-login
Dear ASP.NET Programmers,
I am using forms authentication in my web application. I would like the
users to be transferred to the login page when the session expires. I am
using session state, but the following code in global.asax file does not
work:
Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
FormsAuthentication.SignOut()
Response.Redirect("login.aspx")
End Sub
How can I solve this problem or work around it?
Buran
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Burak Kadirbeyoglu Guest
-
Strange problem with Forms authentication: After successfull login, login page is still displayed
Hi there I have a quite strange problem with my ASP.NET-Application. The application has being deployed one year ago and worked fine till last... -
session problem - login screen continually reloads after pressing the login button
I am trying to get sessions to work on a log in screen to give certain users access to certain pages/directories. The problem is that when the... -
Session lasting too long -- Session_End event firing way late !! ??
Why are my sessions lasting so long? I have them set to 20 minute timeout in config file? The Session_End event is getting called an hour or more... -
Session_End never fires
I've got an ASP.NET page with a counter subtraction routine in the Session_End method in the Global.asax.cs: protected void Session_End(Object... -
Session_End Not Firing
Hey guys I have a user tracking setup to track users. What it does is once a user hits my site it sends me an email telling me some info and once a... -
Tu-Thach #2
session_end and re-login
If your pages/directories are marked with <allow>/<deny>
in the Web.config file, then when the session expires,
the user will be redirected to the login page
automatically when they access the page.
Tu-Thach
would like the>-----Original Message-----
>Dear ASP.NET Programmers,
>
>I am using forms authentication in my web application. Isession expires. I am>users to be transferred to the login page when theglobal.asax file does not>using session state, but the following code inEventArgs)>work:
>
>Sub Session_End(ByVal sender As Object, ByVal e As***> FormsAuthentication.SignOut()
> Response.Redirect("login.aspx")
>End Sub
>
>How can I solve this problem or work around it?
>
>Buran
>
>
>
>*** Sent via Developersdex [url]http://www.developersdex.com[/url]>Don't just participate in USENET...get rewarded for it!
>.
>Tu-Thach Guest



Reply With Quote

