Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2006

Tip: Looking for answers? Try searching our database.

workaround to suspend the session object

Thread view: 
Gaurav - 30 Aug 2006 22:13 GMT
Hi All,

I have a application called as "SUN Identity Managaer" . once the user
authenticates using username/password, I redirect it to the custome
page ( please read... I REDIRECT IT TO THE CUSTOM PAGE ), where I ask
him second level of authentication questions.

But the problem here is that , once the first level of authentication
is passed , the internal session objects ( which are not known to us )
is already set, and thus any knowledgeable user can log into the
application by simple typing the end page in the address bar, while the
second page for authentication is on the screen .

I want to somehow , suspend that session until that seond level of
authentiation is also done. ( There is no function available to suspend
the session )

any pointers to the problem would be really appreciated.

regards,
Gaurav
Babu Kalakrishnan - 31 Aug 2006 13:24 GMT
> I have a application called as "SUN Identity Managaer" . once the user
> authenticates using username/password, I redirect it to the custome
[quoted text clipped - 6 lines]
> application by simple typing the end page in the address bar, while the
> second page for authentication is on the screen .

Your authentication need not be limited to what the container has
performed for you. (I assume that's what you mean by the "first level").
 Your servlet code that handles the submit from this second level
authentication screen could set some special attribute in the session if
and only if that level of authentication has been completed succesfully
(e.g. session.setAttribute("AUTHENTICATED","YES") ) - and your servlet
could deny requests to any other protected page if that special
attribute is not found in the session.

BK


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.