Click here to Skip to main content
16,018,797 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello guys i am struck in one thing.
What i want to do is when the session gets expired,after re login i want to redirect the user to the same page on which the session got expired.
How can i do this in vb 2005 using c#
I tried to keep the value of the current page in the sessions but cant get the values on login page as they gets expired.
Thanks.
Posted

You can achieve by using Request.UrlReferrer Property. See this[^] how to Use it.
Otherwise, try in this way[^] also.
 
Share this answer
 
You can also try to save the URL in query string and redirect login page to the previous page by fetching the URL from query string.
 
Share this answer
 

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