This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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!
It is sorta covered in the JavaRanch Style Guide.
subject: Losing Session Data!!!
It's not a secret anymore!