Hey!

I am stuck and need some help.  I hope that my description
of the problem is okay.  I can explain further if needed.

There are links on the home page to various JSPs.  One
of the links, if followed, I want her session to be invalidated().
Other links, not.

I do POST from one webserver, call it WebserverA.  The POST
calls a LoginHandler servlet on WebserverB.  Upon valid
authentication, LoginHandler gets a session object,
i.e., req.getSession(true). Then it redirects using a
relative path to a JSP, like this:  res.sendRedirect("target.jsp").

The JSP builds a dynamic page with the help of
another servlet that is accessed using a fully qualified
URL (this works).  Before leaving this page, I do a
session.invalidate() and send her back to WebserverA.
She must now login again, if she wants access to the JSPs
again.

Now here's the problem. I tried using a relative path to this
servlet, but my session.invalidate() in the JSP won't work.

My question is, why won't a relative path work?  If I
move this servlet to another URL location, I have to change
my code to do it. Blah!

Thank you.

Sans adieu,
Danny Rubis

___________________________________________________________________________
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