Session in PHP

posted by Scudyen date: Thursday, May 22, 2008 category: PHP

Working with sessions in PHP is very basic. You can pass values to session as key/value pairs. To store and receive data from sessions are very easy to use.


Storing data to sessions :

session_start();
$_SESSION['mySessionName'] = "mySessionValue";
?>


Now let's receive data from session.

session_start();
echo $_SESSION['
mySessionName'];
?>



Happy Coding


Read More

Custom Search



Gazatem Technologies Active News Manager


page counter

Listed with 411asp.net Listed with 4aspin.com