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 vb.net 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
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

http://msdn.microsoft.com/en-us/library/yh26yfzy.aspx


Avatar of Kumaraswamy R
ASKER CERTIFIED SOLUTION
Avatar of krishnav
krishnav
Flag of India image

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