-
May 30th, 2008, 11:28 AM
#1
Login Problem using Spring Hibernate
I have a strange situation when logging into the application using Spring and Hibernate.
The login works often but sometimes it does not work meaning I have to enter user name and password twice
Until it redirects me to the home page.
For instance, even after giving the correct user name and password the page does not get redirected
But it still shows the login page and nothing seems to be processed.
Enclosed is the URL which shows the login page.
This url shows the login page even after entering the correct username and password
//xxxxx/testapplication/acegilogin.jsp;jsessionid=B0AF59C4876C9EFBFD21A4EF D0DC2E94
But the correct url which redirects me to the home page does not have “jsessionid” attached in the url.
//xxxxx/testapplication[/url] /acegilogin.jsp
Any suggestions or advice is really helpful.
Regards
Ruby
-
Jun 5th, 2008, 05:20 PM
#2
Seems to me you are rejecting session cookies on your browser, which causes the jsessionid to be included in the query string. Whatever is generating the link to the login page appears to not be rendering the URL to include the jsessionid when required.
-
Jun 20th, 2008, 05:09 PM
#3
Is there any way by which we can check why its creating the jsession id or is there a way of truncating the jsession id.
-
Jun 20th, 2008, 05:32 PM
#4
http://en.wikipedia.org/wiki/Session..._session_token
Management of the session Id is the container's responsibility, not something Spring Security is involved in. It's also up to you to make sure URLs are properly encoded so that you don't lose the session in cases where the user has cookies disabled.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules