>>> "Boemio, Neil (CAP, FGI)" <[EMAIL PROTECTED]> 13-May-00
5:45:38 PM >>>
>I didn't know about the format:
>/somepath;sessionid=958234966546157650
It's the standard for doing this since HTTP/1.1.
Many other stable servlet engines will do this for you if JRUN can't
(eg: Tomcat).
>Nic ... about your other suggestion .... I'm a little confused.
It's easy to get confused with this sort of problem.
>When the page receives a POST request, I parse
>out the parameters. When I check the session id before
>(and after) parsing the parameters, it's still not the
>correct one. So it seems that JRun is ignoring the session
>id in the ACTION parameter of the FORM tag.
>I'm not sure why your suggestion to try a
>request.getSession() after the parse would work,
>since it looks like JRun already has the session id before
>this (the wrong one, unfortunately). I did try it and it had no
>effect.
You have to udnerstand the mechanics of sessions.
When your servlet calls request.getSession(true) JRUN looks in the
places it might find a session id, those are cookies and HTTP
parameters.
The parameters come from 2 different sources: POST data and query
parameters.
But if you call request.getSession(true) before you parse the POST
data JRUN doesn't have access to the session id (should that be where
it is).
However... since you are encoding the URL, ie: with a query parameter
it should still work (because the session id should be available to
JRUN whether you parse the POST data or not).
Try printing out the query string (request.getQueryString()) when you
recieve the request... do you get the correctly encoded URL? If so
JRUN has a BIG bug and there must be a fix (I'd have thought).
It could be that JRUN is doing something wierd with query/POST
parameters.
Nic
___________________________________________________________________________
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