May 30th, 2008, 11:28 AM
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
But the correct url which redirects me to the home page does not have “jsessionid” attached in the url.
Any suggestions or advice is really helpful.
Jun 5th, 2008, 05:20 PM
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
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
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.