Well, I've tried that (actually using the zend framework)

if($_REQUEST["PHPSESSID"]){
   Zend_Session::setId($_REQUEST["PHPSESSID"]);
}

but this doesn't seem to be working.
If I take the session id from one browser (firefox) and then try to set it in another browser (IE) like:
http://localhost:82/home?PHPSESSID=f2281c38e9a26daba9c486c7e45704d5

IE gets the same cookie, but I'm not logged in (as I was in firefox with the same session id).

If I try to request
http://localhost:82/home?PHPSESSID=xxx
in firefox (while logged in), it's not changing the session id to xxx, and therefore I'm still logged in.

Am I using i wrong?





Christer Edvartsen wrote:
You could use the session_id function to set the session id. Check out the php manual:

http://www.php.net/session_id

Anders Gunnarsson wrote:
Hi

I'd like to send the session id as a url request (on a single page),
instead of using the cookie.
(Firefox looses the cookie when uploading files with flash)
Something like:

if($_GET["PHPSESSID"]){
   // set session to $_GET["PHPSESSID"]
}
session_start()

is this possible?

regards
Anders

Reply via email to