1
How can I change the value of ReturnUrl
passed to the login page when the user is on a specific page and the session expires?
For example, if the user is on the page www.meusite.com/seguranca.aspx
and the session ends, rather than by default directing to www.meusite.com/login.aspx?ReturnUrl=seguranca.aspx
I’d like it to be directed to another page, like www.meusite.com/login.aspx?ReturnUrl=default.aspx
.
For the other pages, it would remain normal.
This application is Asp net, I say it is not MVC? If it is Asp net, just configure in the global.asax default methods. Session_onend: void Session_end(Object Sender, Eventargs E) { // Redirect to your page }
– Mattos