Last post Jan 05, 2014 02:26 PM by hans_v
Jan 05, 2014 01:52 AM|kingofspades80|LINK
I'm new to ASP.Net development. I'm trying to develop a website in which when a user signs out, the application remembers what page user was on, and loads the same page the next time user signs in. Can anyone please guide me how this could be possible in
ASP.Net? I'm a novice here and have no clue how to accomplish the task.
Jan 05, 2014 04:49 AM|Mikesdotnetting|LINK
When the user signs out, you need to store the current page somewhere. You can get the current page from Request.Url. You cna store this in a cookie on the client, or in a database (which will be more stable). When the user signs in, check to see what the
current page was for that user by reading from the cookie/database and use Response.Redirect to return them to it.
Jan 05, 2014 07:29 AM|kingofspades80|LINK
Thanks a lot. This is of great help. One thing I'd like to ask here: Do I need to create a database table to store the string returned through Request.Url, along with username?
Jan 05, 2014 01:36 PM|Mikesdotnetting|LINK
If you want to store the details in a database, you will need a table to store it in.
Jan 05, 2014 02:26 PM|hans_v|LINK
. I'm trying to develop a website in which when a user signs out,
Many times, users don't logout by clicking the logout button/link, but they just leave your website by entering another url, or closing the browser.
But when they do logout, and they where visiting a secured page that only logged in users can see, how could they return to that page?
Also, when people have made a favorit link in their browser to return to a specific page,, then they don't expect to be redirected to the last page they visited.
I think you should reconsider to implement this....