----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Andrew Brady wrote:
>
> I have a servlet which sets/gets session ok when called as
> a servlet.
>
> I would like to use this servlet from JSSI but the session
> does not get initiated.
>
> If I initate a session by calling the servlet directly,
> then call the servlet through a jhtml, the jhtml call
> picks up the session, ok.
>
I have checked that the ServerName defined in httpd.conf
is the same as that I am calling the jhtml with. This
can cause this problem according to Antonio Chirizzi.
Bit more info. Doing a GET against the jhtml page and no
set-cookie comes back, but doing a HEAD and the expected
set-cookie is there. eg:
% echo "GET /season.jhtml HTTP/1.0\n" | telnet host port
Escape character is '^]'.
HTTP/1.1 200 OK
Date: Wed, 19 Apr 2000 09:53:44 GMT
Server: Apache/1.3.9 (Unix) mod_fastcgi/2.2.2 ApacheJServ/1.1
Connection: close
Content-Type: text/html
<html>
<snip>
</html>
Connection closed by foreign host.
% echo "HEAD /season.jhtml HTTP/1.0\n" | telnet host port
Escape character is '^]'.
HTTP/1.1 200 OK
Date: Wed, 19 Apr 2000 09:58:24 GMT
Server: Apache/1.3.9 (Unix) mod_fastcgi/2.2.2 ApacheJServ/1.1
Set-Cookie: JServSessionIdservlets=a115o8oioe; path=/
Content-Length: 0
Connection: close
Content-Type: text/html
Connection closed by foreign host.
--
Andy Brady Email : [EMAIL PROTECTED]
Web Services Group Tel : +44(0)118 9499252
E.C.M.W.F. Fax : +44(0)118 9869450
Shinfield Park, Reading, RG2 9AX Web : http://www.ecmwf.int
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]