> This has probably been asked a million times.
> 
> I have several pages where the user can click to go to a login page. I want to use 
> the same page for the login.
> 
> How can I set it so that after the login it goes back to the page it came from?

One way is to add the url to the session.

Here's what I do:

1. Filter intercepts incoming request.
2. Checks to see if user object in memory.
3. If not, write the requesting URL into session, and forward to login
screen.
4. Login screen. 
5. If login successful, retrieve URL from session.
6. If URL = null, then go to default page.
7. If URL <> null, then forward to URL.

-- 
Bryce Fischer <[EMAIL PROTECTED]>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to