All right, so as scott said the SessionAccessCounter
is incremented when browser B is opened using ctrl-n,
meaning that when I go back to browser A and submit
the form which still contains the old value for
_session_access_counter, the test in
TemplateSessionValidator:

if
(data.getParameters().getInt("_session_access_counter")
<
                    (((Integer)
data.getUser().getTemp("_session_access_counter"))
                    .intValue() - 1))

evaluates to true so the Action is not performed. This
is a massive bug for my app since people are often in
the middle of filling out a form, then realize they
need to look elsewhere on the site for more info.
(btw, i'm not sure if this happens on all browsers,
but it does in ie, which everyone here uses)

Does this 'work as designed' or is this a bug? I
obviously need to patch it for my app, does anyone
else need this?

-Lou

--- Louis Moore <[EMAIL PROTECTED]> wrote:
> Thanks for the response Scott.
> 
> So I've narrowed down the scenario that causes this
> bug:
> 
> 1) Open browser A and navigate to a form.
> 2) Open browser B using ctrl-N
> 3) Submit the form in browser A
> 4) Nothing happens
> 
> Any thoughts as I start to debug this?
> 
> thanks again,
> Lou
> 
> --- Scott Eade <[EMAIL PROTECTED]> wrote:
> > Louis Moore wrote:
> > 
> > >I've got a webapp using turbine2.2, tomcat
> 4.1.27,
> > >apache1.3.something, and jdk1.4.2 and I've
> noticed
> > an
> > >odd bug where Actions don't get executed
> > occasionally
> > >sometime after a user opens a new window from
> their
> > >browser with Ctrl-N, opening the same page.
> > >
> > >I use the hidden _session_access_counter variable
> > in
> > >my forms to prevent double submission, and my
> hunch
> > is
> > >that this, combined with multiple windows (the
> > content
> > >of the site is such that users often like to
> Ctrl-N
> > >and keep multiple windows open) is somehow
> blocking
> > >Actions that I don't want it to.
> > >
> > >This bug has been difficult to reproduce, it
> > doesn't
> > >always happen. All I really know right now is
> it's
> > >somehow related to opening multiple windows while
> > >viewing a page. I know I probably have to start
> > >digging into the SessionValidator code to figure
> > out
> > >what's going on, but I thought I'd see if anyone
> > has
> > >seen this kind of behavior before first. 
> > >  
> > >
> > Opening a new browser window and loading a page of
> > your application will 
> > indeed increment the session access counter.
> > 
> > Scott
> > 
> > -- 
> > Scott Eade
> > Backstage Technologies Pty. Ltd.
> > http://www.backstagetech.com.au
> > 
> > 
> > 
> > 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __________________________________
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing.
> http://photos.yahoo.com/
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to