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.
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.
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.
yes i agree it
HI
Session is store a unique idetification of user on server.
very good , i agree
hi dear
<% response.redirect[“myNewURL”] %>
use this code under the Seesion expire code.
<%
'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)
%>
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.