I'm using Tomcat 3.2 and IIS 5.0 and I'm having
problems with sessions. Each page get a new session ID
so my carts are empty on each page or refresh. If I
run tomcat 3.2 in stand alone mode it works fine. Here
is an example piece of code that I did. 

<% 
Long text = (Long) session.getAttribute("test"); 
if (text == null) 
out.println("NULL<br>"); 
else 
out.println("GOT :"+text+"<br>"); 
out.println("Sess id:"+session.getId()+"<br>"); 
session.setAttribute("test",new Long(4)); 
out.println("new:"+session.isNew()+"<br>"); 
out.println("Timeout
:"+session.getMaxInactiveInterval()+"<br>"); 
out.println("Created
:"+session.getCreationTime()+"<br>"); 

out.println("Came from 
Cookie:"+request.isRequestedSessionIdFromCookie()+"<br>"
); 
out.println("Came from
URL:"+request.isRequestedSessionIdFromURL ()+"<br>"); 
out.println("Session Valid
:"+request.isRequestedSessionIdValid() 
+"<br>" ); 
out.println("Session Valid
:"+request.getRequestedSessionId() 
+"<br>" ); 

Under standalone mode the FromCookie() returns true
under IIS FromCookie() and FromURL() both return false
and I get a new session ID everytime. 

I'm using the same browser and computer with cookies
turned on. Has anyone seen this problem. 

Thanks, ahead of time. 
Kevin 


=====

Are you earning money browsering the Internet? If not go to one of the following 
websites and sign up now.  
-------------------------------------------------
All Advantage www.alladvantage.com/home.asp?refid=LIU070 
GetPaid4 web site http://www.getpaid4.com?kevinba
CashSurfers http://www.cashsurfers.com/?a=HTML&s=Join&referrer=kevinba



__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text

Reply via email to