File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Losing Session Data!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Losing Session Data!!!" Watch "Losing Session Data!!!" New topic

Losing Session Data!!!

deepak bansal
Ranch Hand

Joined: Feb 25, 2001
Posts: 33
Hi All,
I am making a LoginServlet in which after all the validation i am creating a new session object(In which i am putting all the relevant data which will be require during the session). After this i am redirecting the the request to the ControlServlet which will display the appropiate page on the Browser . When User put up the next request i am not able to retrieve the session information which i had put in the LoginServlet. While redirecting the request from LoginServlet to the ControlServlet I am encoding the URL so that Session Id Should get appended .
I have tried both encodeURL and encodeRedirectURL but none of is working after encoding the URL in the LoginServlet I tried to print it on the Console It is not printing the Session Id (I have turn off the Cookies in the Browser). I am using the WebLogic6.0 and have set the required setting in the weblogic.xml . If any one has any idea the pl tell me .
Thanks & regards
Be Truthful to yourself!

Be Truthful to yourself!
I agree. Here's the link:
subject: Losing Session Data!!!
It's not a secret anymore!