Possible that because session_name is a function it puking on the 
$session_name variable you're trying to create.

Another note is this: $$session_name = "test";

Maybe I'm on crack but didn't you mean: &$session_name = "test";
Also... why did you try setting $session_name twice? Once to 'sessiontest' 
and once to 'test'? Did you mean "$sessiontest"?

>
>Hi,
>
>This works fine:
>
><?php
>   $sessiontest = "test";
>   session_start();
>   session_register('sessiontest');
>?>
>
>But way does this not work???
>
><?php
>   $session_name = "sessiontest";
>   $$session_name = "test";
>   session_start();
>   session_register($session_name);
>?>
>
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to