Different ways of Storing Page URL while session expires or User Logout
Hello everyone, In this blog, we will discuss few ways to store last access URL for the users so that we can provide seamless login and same journey for the user. So recently we got same kind of requirement, where we wanted user to get the last access page if session expires or user is logged out mistakenly. We started exploring different ways. First thing came in mind was to use query string parameter to pass the last access web URL of the page. This works absolutely fine but there are situation where the web page URL can have appended query string parameters. So it will be difficult to pass URL with query string as parameter to login page URL. Also if there are security mechanism like WAF implemented on your website then, there is a high chance it will not allow query string to pass from non-authenticated pages to your controller. This was the same scenario which we were facing. Somehow, the query string was removed automatically while the user was redirecting to login page wh...