Hi Martin,

What you told about sharing sessions betwen different browsers is true
only in following circumstances:

- Having the SAME browser  open a new window
  like Netscape does in menu "File->New->Navigator Window" .

- The servlet runner sets a "timed" cookie instead a session cookie.
  "timed" cookies specify an expire time, while the simpler, session
   cookies are those cookies wich make no mention about their life-time.

  Browsers should keep session cookies only in memory, without
  saving them to disk, and discarding them when program ends.
  At least Netscape behaves this way.
  Some more-sophisticated RAM-spare browsers might share memory
  betwen different processes of the same binary, including session-cookies.

  Servlet-runners should not use timed-cookies for session tracking.
  (at least that's what I think, opinions may vary)

So, different instances of the same browser *should* not share the same
cookie-based session.

If they do, then mabe the servlet-runner developer/docs will help.
Or try 'the other' browser, dont want to flame here about wich one...

---------------------------------------------------------------------------
Anyway,

You should not rely *only* in internal-session-keeped data and row
pointer to display paged resultsets. Add extra information like currently
shown page-or-line-number and (if needed) some-result-set-id
within your hrefs or hidden-form-fields.
Just to protect against fast&nasty users that multiply windows,
push back-buttons, clik-link-right-button-open-in-new-many-windows,
and other terrific (inter)actions for innocent servlet/web developers
like us.. :-)

Cezar


> Martin Eberle wrote:
> >
> > !! A user opens two instances of the same browser !!
> >
> > So there can be two ore more call's to a servlet (with the same
> > sessiondata) !!
> > ->That means: What about the members of helper-classes ?
> >  -> how can I synchronize this situation ?
> >
> > Specific problem:
> > My servlets serve as an ecommerce-system:
> > 1. To navigate through the resultset of a database-query I set a cookie
> > (identifies set of products) to the client
> > 2. The user post two simultanious querys -> the slower query-process
> > sets the final cookie.
> > 3. So the user navigate in both browser windows throw the same set of
> > products!
> >
> > thanks martin
> >
> > ___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>


Cezar Totth                             email:  [EMAIL PROTECTED]
                                        Fax:    (401) 220 33 95
Genesys Software Romania                Phone:  (401) 638 49 44
Stefan Furtuna 169, sect.6
cod 77171, Bucharest
Romania

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to