Sunday, May 16, 2010

PHP--session ()

Session() used a lot in PHP. It is used to store the information of users such as usename. This information about users will be stored on the server utill the user leaves this website. Thus, it is a temporary storage.

Identifier UID is created by the session () for every guest to store their variables.
<?php
$username="guest";
if (isset($username))
{
$_session($username);
echo $_session($username);
}
?>

No comments:

Post a Comment