You are here: Re: mediator between PHP and Perl (with sessions) « PHP « IT news, forums, messages
Re: mediator between PHP and Perl (with sessions)

Posted by Eli on 10/02/75 11:08

Eli wrote:
> Hi..
> Thanks for your help. I searched a bit more, combined with your data,
> tested, and found a solution. :-)
Oops.. forgot the most important line..
>
>
> #!/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
session_start(); //start the session
>
> //read the session variables:
> echo $_SESSION["name"];
> ?>
>
>
> -thanks, Eli
-thanks, Eli

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация