• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Redirecting address

 
yuvaraja jaganathan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
How we are redirecting to the URL address for any of the screen in the application when the application is not in session.And how are we directing to the login page when an application is not in session.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you explain what you mean by "not in session"?
 
yuvaraja jaganathan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let me explain clearly:

How to implement a single sign on?.

For instance, your organization may have a single portal for logging in users, whose login page resides at http://mycompany.com/SSOLogin.

If user is not logged in and tries to access application's page, they must be redirected to the login page. Assuming successful authentication, they should be redirected to the original resource they requested.How this process works?
 
nelson christos
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well if the user is not logged in,
whenever he tries to make an access to the page in the
application you can always take him to the login page by checking
whether the user is in the session attribute.
as soon as ta user logs in and is validated, you store the userObject in
session. whenever he logs out or tries to make a access without logging in
you take hime to the login page.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64620
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A servlet filter is perfect for this task.
 
yuvaraja jaganathan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you give me some code input,which will be usefull for me.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by yuvaraja jaganathan:
can you give me some code input,which will be usefull for me.


I've just added a war file to my simple.souther site.
http://simple.souther.us/SimpleLogin.war

If you have a servlet spec 2.4 compliant container, just download the war file to your webapps directory and give it a shot.
 
yuvaraja jaganathan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can you update me with the servlet as well that would be helpful
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by yuvaraja jaganathan:
Hi,
Can you update me with the servlet as well that would be helpful


It's in there.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic