Link to home
Start Free TrialLog in
Avatar of kapitany
kapitany

asked on

session id problem

Hi,

I'm writing a servlet which maintains accounts. So you can log in with username passwd. It is based on the HttpSessionid. So as long as the session is open the user has the same session id. I also have applets that checks if the user is logged in. And here comes the problem... When I post a request from an applet to the servlet with Netscape I'm not getting the same session id. Why?? With explorer works fine but I think hetscape is generating a new session id. Has someone had similar problems??
Or what is the good way to manage user sessions?? The session Id looked promising but now I'm lost.. Could someone help me out??
I'm using ObjectInputStream and ObjectOutputStream to communicate between applet and servlet.. And this seems to be not working.
THX,
Kapi
Avatar of kapitany
kapitany

ASKER

If I would not use the ObjectInput or Putput stream it would work fine, but when I'm using it I got a new sessionid. The session id is always the same if I'm using to post from applet and always the same if I'm submitting from the web page (just submit not from applet) but these ids are unfortuantely different in Netscape...
??
Ok to make really clear. Netscape uses 2 session id-s. One for the applet and one for the html. How can I know which belongs to the same browser?
ASKER CERTIFIED SOLUTION
Avatar of buka1974
buka1974

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Force/accepted by

Netminder
Community Support Moderator
Experts Exchange