Michael, It would help isolate the problem if you can use firefox's LiveHttpHeaders http://livehttpheaders.mozdev.org/ to examine Set-Cookies header from tomcat and Cookie header to tomcat.
HTH Hansen -----Original Message----- From: Chan Michael [mailto:[EMAIL PROTECTED] Sent: Monday, April 24, 2006 3:22 AM To: Struts Users Mailing List Subject: 回覆: RE: Session without cookies Hi, The test is done within the same tab in firefox. Thanks. Michael --- abdurrahman sahin <[EMAIL PROTECTED]> �f: > are you sure that u did not start a new browser process each time.? > because sessions are browser process based. > starting a new process and opening a new window within a browser > window are different things. > > http://asahin.net > > > -----Original Message----- > From: Chan Michael > [mailto:[EMAIL PROTECTED] > Sent: Monday, April 24, 2006 12:18 PM > To: user@struts.apache.org > Subject: Session without cookies > > > Hi All, > > I have been searching for hours and still cannot find any useful info. > Hope you can help. > > I am building a Struts app. (Struts 1.2.4 + Tomcat > 5.5 > + Apache 2.0.55 + Spring 1.2.6) and want to use > session without > enabling cookies. I use <html:link> to create links so ;jsessionid is > appended to the end. Fine. The problem I have is every time I access a > page, a new session id is created so essentially everything stored in > session is lost. Here is some output from my test action, > test.do: > > test.do > ============================================= > HttpSession session = request.getSession(); System.out.println("Is > session new? " + session.isNew()); System.out.println("Session id: " + > session.getId()); > > First access > ============================================= > Is session new? true > Session id: B9F9E135DCBAC90AB2B5AEBCE901FAA5 > > Second access > ============================================= > Is sesssion new? false > Session id: 8CCE7A388E76C0F56016E8F41E29E0E5 > > The session is not new but the id is different...I already set in > Tomcat server.xml > > <Context path="/myApp" cookies="false"...> > > What am I missing?? > > Thanks in advance. > > Michael > > _______________________________________ > YM - �x����息 > > 就算你�]有上�W,你的朋友仍可以留下��息�o你,��你上�W�r就能立即看到,任何�f > ��都�幼呤А� > http://messenger.yahoo.com.hk > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > _______________________________________ YM - �x����息 就算你�]有上�W,你的朋友仍可以留下��息�o你,��你上�W�r就能立即看到,任何�f��都�幼呤А� http://messenger.yahoo.com.hk --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]