Vita Rara: A Life Uncommon

Redirection Question

Hi Mark,

I want to redirect a user to his previous visited URL, after a successful login.
For example, a user clicked on:
/mySite/products/purchase.action?id=45&try=234

and this takes him to the login page. I do that by using a login interceptor on purchase.action. I store this URL in the session in the login interceptor. How do I redirect back to this URL? (Of course this URL can vary depending on where the user was).

Thanks.

Reply

Please solve the math problem above and type in the result. e.g. for 1+1, type 2
  • Allowed HTML tags: <a> <img> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <h1> <h2> <h3>
  • Lines and paragraphs break automatically.
More information about formatting options