Session with php
Posted: Fri May 23, 2003 4:28 pm
I have some question about session in PHP
I have a file session.php below
and file view.php
mod_edit: added php tags
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
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