> 1) If the cookies are not found in the directory , where are they ?

In memory.  The cookie is set with an expiration of -1, which suggests to
the browser that it shouldn't bother writing it to disk.

> 2) If I disable cookies in the browser , still session tracking will work
?

Your servlet needs to call HttpServletResponse.encode[Redirect]URL() on each
URL it outputs, to add the session ID to the URL.

> 3) What exact combination does tomcat uses of cookies + URL re-writing

It uses cookies if enabled, URL re-writing (with the servlet's help) if not.

> 4) If Tomcat is used with Apache , then which one sets the cookies ?

Tomcat, AFAIK.

                                                            -- Bill K.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 4:25 AM
To: [EMAIL PROTECTED]
Subject: Questions about Tomcat Cookies


Hi,

I have used tomcat as standalone and w/ apache also.
In my applications , session tracking is working fine.
To the best of my knowledge , Tomcat does session tracking by combining use
of
1) Cookies 
2) URL re-writing.

My browser alerts me , when tomcat tries to set the cookie.
But when i see cookies folder of my Win NT machine
(C:\Winnt\profiles\Administrator\cookies) , I didn't found any cookie by
name 'JSESSIONID'

MY QUESTIONS ARE : 
1) If the cookies are not found in the directory , where are they ?
2) If I disable cookies in the browser , still session tracking will work ?
3) What exact combination does tomcat uses of cookies + URL re-writing
4) If Tomcat is used with Apache , then which one sets the cookies ?

TIA & Regards,
-Amit.
Sansui Software Pvt. Ltd.

Reply via email to