Click here to Skip to main content
15,891,993 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,
When session out happened, I want to redirect user to the page which session out happened page after login.....
Help me plz....
Posted
Updated 24-Oct-13 19:03pm
v5
Comments
TrushnaK 22-Oct-13 6:06am    
Not cleared elaborate your question.
ZurdoDev 22-Oct-13 7:33am    
There are lots of samples online. If you want to redirect automatically you need to implement a JavaScript solution.

1 solution

Try something like

C#
if (session["user"]==null)
{
server.transfer("test.aspx");
}


Hope this helps
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900