On Mar 15, 2005, at 4:34 PM, David Cooper wrote:

I have a site built with PHP 4.3 that sends requests to a JBoss j2ee
application using either the include() or the virtual() functions from php
land. Each request from a .php file seems to get a new http session in the
JBoss 4.x server.


I thought if I passed the JSESSSIONID in on an http request that would hook
up the request from the PHP engine to the session in the JBoss domain. It
simply doesn't seem to work. Even with the JSESSIONID set on each request
there seems to be a new session created for each request from a .php file.



This would depend on the session implementation of JBoss, so you'd have to check its source to be sure, but the way 99% of session tracking works is the first HTTP request that lacks a valid session id creates a new session on the server. You can't just make up a session ID and have it accepted. I would approach this problem by first sending an HTTP request without a session ID, grab the session ID from the response, and place that session ID in all further requests from the same user.


Good luck,
___________________________________________________________________
michael at czeiszperger dot org  |  "Kindness knows no shame"
Chapel Hill, NC USA              |      -- S. Wonder


_______________________________________________ Juglist mailing list [email protected] http://trijug.org/mailman/listinfo/juglist_trijug.org

Reply via email to