I think the key name should be jSessionid according to the Servlet spec.
 

Regards

<Meeraj/>

-----Original Message-----
From: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 03, 2001 9:46 AM
To: [EMAIL PROTECTED]
Subject: RE: question in user state management using Session

Hi Suhas,

 

You might try something like this:

 

HttpSession session = request.getSession();

 

If (session != null)

{

   id = session.getId();

}

 

Hope this helps,

 

Jon.

 

 

-----Original Message-----
From: suhas [mailto:[EMAIL PROTECTED]]
Sent: 03 July 2000 12:28
To: [EMAIL PROTECTED]
Subject: question in user state management using Session

 

Hi

I want to know the http request header key  -

 

I'm writing request.getSession(true)  in the jsp .  This method in turn might be settting the browser header key .( dunno exactly name of that key)
 .But I think that header key is "set-cookie = 12313 " ( this can be the unique
 session id that server has to set for identifying a user) .

So whenever server receives this key in the http request , server identifies the user , if the key is present in the request

 

 Server checks the hashtable stored in the server  and retrieves the
 information for that

 

In another jsp page I tried to print all the request header keys , But there wasn't any such key found . ?

 

Can u tell how to check for that key

 

 

Reply via email to