I have a file session.php below
Code: Select all
<?
session_start();
$name='ABC';
session_register('name');
?>Code: Select all
<?
session_start();
echo $name;
?>I think my code is no problem . The result is ABC on the screen, but when i used session_name('name') , a PHPSESSID is output on the screen, is it a problem. And I don't know a scope of $name, it is a Global variable ?
Please help me
Thanks