0

Hi all,

I just want to know if there any asp code can make auto redirect from one page to another page when the session timeout end ?

Any solution for this problem ?

I need a solution ASAP, so help me please.

Thank You.

7
Contributors
7
Replies
16
Views
5 Years
Discussion Span
Last Post by remunance
0

Easy mode: do the following in Web.config

<configuration>
  <system.web>
    <sessionState
      mode="InProc"
      timeout="60" />
  </system.web>
</configuration>

and follow this blog which is talking about how to redirect to another page when session timeout elapsed. HERE

0

You can use property of your web.config:

<forms name="YourAuthNameIs" 
       loginUrl="~/Home.aspx" 
       defaultUrl="~/Default.aspx" 
       protection="All" path="/" 
       cookieless="AutoDetect"/>

When the expiration occurs they will be sent to the page that loginUrl is set to.

0

hi dear
<% response.redirect[“myNewURL”] %>
use this code under the Seesion expire code.

0
<%
'Start the session and store information
Session("TimeVisited") = Time() 
Response.Write("You visited this site at: " & Session("TimeVisited"))
%>

<%
Dim mySessionID
mySessionID = Session.SessionID
%>

<%
Session.Timeout = 240
Response.Write("The timeout is: " & Session.Timeout)
%>

Edited by happygeek: fixed formatting

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.