I was able to solve the problem of HTTP Session with Virtual Host configuration 
on Internet Explorer 6.0 .

I'd like to re-state the problem I was facing in a clear manner in case someone 
else has the same problem, they might find this useful.

In IE 6.0 I was able to set and get the value stored in HTTP Session while the 
set and get was being performed on the *same page*.
However, when the session is carried accross more than 1 JSP page the session 
was lost.

The solution was quite strange. All I had to do was remove any non-alphanumeric 
characters from the host name.

My virtual hosts did have an understore in them like http://project_a:8080  and 
http://project_b:8080

After removing the underscore , and renaming the virtual hosts like 
http://projecta:8080 and http://projectb:8080 the session was properly carried 
accross multiple pages.

Weird!

~~~~

There's a thread on this issue here: 
http://p2p.wrox.com/topic.asp?TOPIC_ID=13317 

If you scroll down on the above thread you'll find this message...

"it's an IE6 bug...
you could see it : 
http://support.microsoft.com/default.aspx?scid=kb;EN-US;316112

SYMPTOMS
After you install security patch MS01-055 for Microsoft Internet Explorer 5.5 
or 6.0, you may encounter the following problems: 
Session variables are lost.
Session state is not maintained between requests.
Cookies are not set on the client system.
Note These problems can also occur after you install a more recent patch that 
includes the fix that is provided in security patch MS01-055. 

CAUSE
Security patch MS01-055 prevents servers with improper name syntax from setting 
cookies names. Domains that use cookies must use only alphanumeric characters 
("-" or ".") in the domain name and the server name. Internet Explorer blocks 
cookies from a server if the server name contains other characters, such as an 
underscore character ("_").
Because ASP session state and session variables rely on cookies to function, 
ASP cannot maintain session state between requests if cookies cannot be set on 
the client.
This issue can also be caused by an incorrect name syntax in a host header. 

RESOLUTION
To work around this problem, use one of the following methods: 
Rename the domain name and the server name, and use only alphanumeric 
characters.
Browse to the server by using the Internet Protocol (IP) address rather than 
the domain/server name."

 
Anyway, I'm glad that the issue is solved and many thanks to Hassan, Martin for 
your help.

-Rashmi



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to