• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamic link redirect with login

 
nick angel
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good day to all,

I was wondering if someone could give me some guidance to the following matter.

I wish to provide a link to a user to a section of my intranet. If the user is not logged in however
then the user will be redirected to the login page. Once he has successfully logged in the user is
redirected to the original link. (Note: the login mechanism is in a servlet).

I thought of using a session variable that would contain the original link.
If the user is not logged in then the link could be stored as a variable in the user's
session. Once the loggin is successful, the variable could be recovered and used to redirect the user to the
originally requested page. I am simply looking for guidance.

Thank you in advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like a plan.
 
ou yang
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i know what you mean.you may use filter and session to validate all users.i have some code about this.if you want i can send it to you.
 
Alexsandra Carvalho
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ou yang
Please...can you send to me the code about this question?

Thansk a lot
Alexsandra
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic