hello every body,

i tried the SessionSnoop servlet in Jason Hunter book and it seems  i am
doing something
wrong somewhere. i am getting from session.isNew() boolean true in the
second und third request sometime until the eleventh request. i am
invoking the servlet from the same browser window. i have also set the
browser to accept cookies. and from is requestedIdFromCookie i am
getting boolean false. for every subsequent request i am getting a new
HttpSesion object.

thanks a lot for any hint.


here is the SessionSnoop servlet output(i have changed the servlet code
a little bit making some output

the sesion is new ?true
this is the HttpSession object for this
request:com.livesoftware.jrun.JRunSession@ef97b09c
you have visited this page1time.

hier is your saved session data:

test:null snoop.count:null why am i getting always null for "test"
and"snoop.count"

here are some vital stats on your session

session ID: 93585681023683722
new sesion? ::true
Creation time: 935856873727 (Sat Aug 28 17:14:33 GMT+01:00 1999)
last access time: 0 (Thu Jan 01 00:00:00 GMT+00:00 1970)
Request session ID from cookie: true
why am i getting false by the first request allthough the cookies are
enabled in the browser
Request session ID from url: false
Request session ID Valid: true

Here are all the current session IDs and the time they hit this page:

93585681023683722: this is the foreignsession
object::com.livesoftware.jrun.JRunSession@ef97b09c snoop.countis not
null:1

TEST URL REWRITING

click here rewriting even when cookies are not supported

___________________________________________________________________________
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