tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Williams, Allen" <awill...@harris.com>
Subject RE: Session IDs & XMLHttpRequests
Date Tue, 22 May 2007 13:21:31 GMT
Excellent!  Thanks.  I'm temporarily sidetracked for a couple of hours,
but then will go back to work on this.

Thanks, and Regards,
________________________
Allen Williams
allen.williams@harris.com
Office: (321)309-7931
Mobile: (321)258-1272
FAX: (321)727-9607
 

> -----Original Message-----
> From: Frank W. Zammetti [mailto:fzlists@omnytex.com] 
> Sent: Monday, May 21, 2007 11:29 PM
> To: Tomcat Users List
> Subject: Re: Session IDs & XMLHttpRequests
> 
> Let's start with this:
> 
> http://www.omnytex.com/test.zip
> 
> Just unzip into ${Tomcat}/webapps and try it... the first 
> time you click 
> the button you should see an alert saying testAttribute is null, the 
> second time it should say "Test attribute has been set".  
> Now, do this 
> in Firefox and check each request that results from clicking 
> the button 
> with Firebug... specifically, expand the requests in the 
> Console view, 
> click the Headers tab, and look for JSESSIONID in the request headers 
> (that's how cookies are sent)... you should always see the 
> same value, 
> if you don't then something funky is going on.  FYI, if you don't see 
> the requests, make sure you check the option in Firebug to record 
> XMLHttpRequest traffic (it may be off by default).
> 
> If you take this app and it works, modify it to the point where it 
> doesn't work and post it for us and we'll see if (a) we get the same 
> results, and (b) try to figure out why... if it doesn't work 
> as-is, then 
> there's definitely something wrong in your environment.
> 
> Frank
> 
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> AIM/Yahoo: fzammetti
> MSN: fzammetti@hotmail.com
> Author of "Practical Ajax Projects With Java Technology"
>   (2006, Apress, ISBN 1-59059-695-1)
> and "JavaScript, DOM Scripting and Ajax Projects"
>   (2007, Apress, ISBN 1-59059-816-4)
> Java Web Parts - http://javawebparts.sourceforge.net
>   Supplying the wheel, so you don't have to reinvent it!
> 
> Hassan Schroeder wrote:
> > On 5/21/07, Williams, Allen <awilli08@harris.com> wrote:
> > 
> >> As I said in my earlier post, the session being returned 
> by getSession()
> >> is a new one;
> > 
> > Can you create a simple test case WAR to demonstrate the failure?
> > I have seen no such problems using Prototype, YUI, or DWR, which
> > I'm currently incorporating into an app.
> > 
> > To test your contention, I've printed the sessionId in a 
> JSP page and
> > made an XHR request via DWR to another simple JSP which logs the
> > sessionId; it's the same, and that second controller page can access
> > the same session attributes as the original page.
> > 
> > So I have to suspect there's something odd about your setup -- the
> > test case would be useful...
> > 
> > FWIW,
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 

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


Mime
View raw message