Sessions are created when a browser connects to a server (i.e., requests
a web page).  Sessions are closed when either the WEB browser shutsdown,
or the WEB server is shutdown.

Using cookies to track a session seems confusing to me, even though it
is a valid approach.  Are you trying to use cookies to create a session,
and track it?  If so, this is separate from the actual "sessions"
created by the underlying browser/server session mechanisms.

Make sure you are distinguishing the two, and make sure your approach is
completely within the bounds for that approach.  In other words, do not
mix the two approaches... you may be getting confused.


"Scheiderer, Stephan" wrote:
>
> Hi,
>
> i realize session tracking by setting cookies with getSession(true). If a
> session exists, the next function session.isNew() should return false. In
> this way, I test if a session is new.
>
> Everything works fine using MS InternetExplorer. Netscape works too, but in
> some cases it doesn�t. It sometimes creates new session (cookies) although
> there does exist one. MSIE does not have this problem. So I don�t think it�s
> the Java API, but the browser settings or an HTML tag missing that has
> something to do with this. Has anybody experienced the same and can help
> me???
>
> p.s.: I�m using Apache 1.3.6 with JServ 1.0b5 and JServSSI (rewritten, so I
> can access sessions from everywhere in the jhtml file).
>        It even doesn�t work if I start the servlets on their own without SSI
> (<SERVLET> tags)...
>
> MfG Stephan Scheiderer - debis Systemhaus GEI
>
> ___________________________________________________________________________
> 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

--
Julio C. Monroy
Chief Information Officer
MallPhoria!
1400 Fashion Island Boulevard
San Mateo, California 94404
p: 650-349-0300
f: 650-571-1025
[EMAIL PROTECTED]

___________________________________________________________________________
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