Link to home
Create AccountLog in
Avatar of Mahesh Yadav
Mahesh YadavFlag for India

asked on

how to return back to the original URL After relogin

I am using Session in my web site.
I wanted to apply the feature by which when the user`s session gets expired.
and right now he is thrown to login page.
and after login he gets the index page.

I want to send him back to original page from where he came to the login page.

how can i do this.
Avatar of HSIHSA

One solution to this problem is saving last accessed url for the particular user into database and when the user will relogin then fetch it from database and display a message asking - "Do you want to go to page you visited last or continue with login?"

You can also use Asp.Net Membership for managing users with no coding

Avatar of Kumaraswamy R
Avatar of krishnav
Flag of India image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account