Don't know if it is related, but a note on an issue in session tracking we got here (an how we soluced it)
We got the following scenario: 1) someone get a link to a struts form in an email 2) He get to the page by clicking on link 3) The page is in a 'secure' area, meaning he gets a popup from browser for the basic-auth 4) User login in and see the form (This is the first time tomcat send a webpage in this session) 5) User fills the form and submit 6) in the Action, request.getUserPrincipal() returns null Diagnostic: session is lost at the second request (that is when tomcat will check if cookies is supported) Reason: it seems tomcat does not parse the ;JSESSIONID= par of url when the form is multipart (for file uploads) Solution: have to user go to an intermediate redirect page before *and* have the browser with cookies enabled Le Lundi 27 Juin 2005 15:56, angelina zh a écrit : > Jack, > > I dont understand why you keep saying there is nothing worng. The session got > established at the log in page and kept valid in the security re-diredct > pages till the welcome page. Then session got lost. Why there is nothing > wrong with it? > > The session id did not get lost, just the http session lost. > > Regards, > > Angelina > > Dakota Jack <[EMAIL PROTECTED]> wrote: > There is nothing wrong. You don't have a new session in your browser. > > On 6/23/05, angelina zh wrote: > > Hi, > > > > Can anyone please help me on this session lost issue? > > > > Here is the problem I am getting: > > > > -- If I open a IE 6.0 browser and log into the web site we are developing, > > I get into a welcome page with a few of link options. In the login action > > class, we set some attributes into the session. If I click on any of the > > links, I got null pointer exception in next action class when we try to get > > attributes from the session. I tried to use Eclipse to debug, noticed that > > the session of the request after the welcome page became to null. > > > > --If I keep that browser open and go to the log in page again. After I log > > in, I get into the welcome page and if I click any of the links now, the > > session of the request is not null and I can go to any links without any > > problem. The null pointer did not occur in the following action class. > > > > --If I close the browser then open browser again, I get > > NullPointerException again if I repeat those steps. > > > > What might be wrong? > > > > Thanks so much in advance. > > > > Angelina > > > > > > > > --------------------------------- > > Yahoo! Sports > > Rekindle the Rivalries. Sign up for Fantasy Football > > > > -- David Delbecq Royal Meteorological Institute of Belgium - Is there life after /sbin/halt -p? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
