The "session" metaphor in http/servlets works by keeping a unique object in
memory/on disk on the server for each "user session". The server then tries
to match every user request with an existing session by trying to get a
session id from the request. This is can be sent in the request in two ways:
Either as a special sessionid cookie (cookie name varies from server to
server) or by a long and ugly querystring parameter appended to each and
every URL "sent" from the server.

So your ASP page is messing up your user's session id, if the servlet
"inside" the ASP cannot connect to the right session id (a new session is
beeing generated, right?).

You need to figure out A) In what way you are storing/transfering your
session id's from clients to the server?

And B) how the ASP page messes this up.

ASP is a mess...

- Tormod

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Chen,
Jason
Sent: Sunday, July 01, 2001 5:57 PM
To: [EMAIL PROTECTED]
Subject: Re: Sharing HttpSession between servlets


I never done this before, just some thoughts.
maybe you can try save the session information into the cookie so that
asp and the new servlet can pick them up.


-----Original Message-----
From: Anson To [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 30, 2001 9:07 PM
To: [EMAIL PROTECTED]
Subject: Sharing HttpSession between servlets


Hi all,

I've got a problem of sharing HttpSession between servlets.  Basically I've
several servlets as my application.  It works fine and the session can be
caught in each servlet throughout the application.

Now I wanna add another servlet to the existing application.  However, the
challengence is that there is a page (an ASP to be exact) sitting between
this new servlet and the existing servlets.  The problem is that session now
cannot be caught after the ASP so I can't retrieve those variables by
"HttpSession.getAttribute()", which have been shared with
"HttpSession.setAttribute()" in the existing application.

I would really appreciate if you can give me some hints as I'm in a tight
schedule.  Many thanks in advance.

Anson
--
Sincerely yours, Anson


__________________________________________________________________
Get your own FREE, personal Netscape Webmail account today at
http://webmail.netscape.com/

___________________________________________________________________________
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

___________________________________________________________________________
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