I am working on web application, I have never created any cookies or used. when I disabled the cookies at my FireFox browser, the application always redirects to login page. In login page I am setting SessionID to session attribute when the userid and password is correct. And when ever the user navigates through the application I am checking the sessionID for matching or not. IF not then redirects the request to login page.
If I enables the cookies at my firefox browser, then application goes fine. Then I have viewed the cookies present in the browser, there i have found
By default, the sessions are handled only through cookies. You need to use URL rewriting if you want sessions to work when cookies are disabled. That means all of the href links, window.open()s and form actions need to be generated through response.encodeUrl() and the redirect url strings need to be generated through response.encodeRedirectUrl(). If you like scriptless jsps, I think the JSTL tag <c:url> automatically handles URL rewriting.
Note that if you use URL rewriting and the user logs in and then manually types in the URL for another page, this second page will not be aware of the session. Only page changes through rewritten URLs will keep session information.
Madhu, JavaRanch is a community of people from all over the world, many of who are not native English speakers. While using abbreviations like "u" instead of spelling out "you" is convenient when text messaging your friends on a cell phone or in a chat room, it presents an extra challenge to those that are already struggling with English. Additionally, such shortcuts may confound automated translation tools that patrons of the Ranch may be making use of.
I would like to ask for your help in making the content of JavaRanch a little easier to read for everybody that visits here by not using such abbreviations.