Re: mediator between PHP and Perl (with sessions)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi..
Thanks for your help. I searched a bit more, combined with your data, tested, and found a solution. :-)



#!/usr/local/bin/php -q <?php //initialize parameters: if ($argc<2) exit("ERROR: session id must be provide as parameter.\n"); $sid=$argv[1];

//initialize session:
ini_set("session.use_cookies","0");  //use no session cookies
session_cache_limiter(null);  //use no session cache limiter
session_id($sid);  //set the session id as got from parameter 1

//read the session variables:
echo $_SESSION["name"];
?>


-thanks, Eli

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux