Martine,
I'm afraid it's not possible to do what you're asking. The thing is, Servlet
API does not even say that there must be any parameter in the URL rewritten
by encodeURL(). It is completely up to the implementation what name for the
parameter it uses and whether it uses a parameter at all. For example, the
server on Sun's site uses URLs such as
http://www.sun.com/storage/;$sessionid$NS2WGCIAAD2F3AMUVFZE5YQ,
where "optional extra path information" is used to keep the session ID (see
RFC1738). I think it this case you would get the session ID by
HttpServletRequest.getPathInfo().
So I'm afraid it's not possible to do what you're asking.
Cau
Petr
-----Original Message-----
From: Martin Kuba [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 15, 1999 11:07 AM
To: [EMAIL PROTECTED]
Subject: name of session parameter
Is it possible to get the name of the parameter holding
session id? Servlet runner uses 'session' while
Apache Jserv uses 'JServSessionId'.
I need to redirect browser to another website,
which will redirect the browser back after a while,
and I need to keep the session. If the browser
uses cookies, it makes no problems, but if the browser
does not use cookies, I must use URL rewritting
and the URL pointing back to my site must contain
session parameter.
Martin
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
INET, a.s. Mgr. Martin Kuba
Kralovopolska 139 e-mail: [EMAIL PROTECTED]
601 12 Brno WWW: http://www.inet.cz/~makub/
Czech Republic tel: +420-5-41242414/33
--------------------------------------------------------------------
PGP fingerprint = D8 57 47 E5 36 D2 C1 A1 C3 48 B2 59 00 58 42 27
http://wwwkeys.cz.pgp.net:11371/pks/lookup?op=index&search=makub
--------------------------------------------------------------------
___________________________________________________________________________
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