Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

PHP Sessions

<?php
// Start our session
session_start();
 
$_SESSION["favcolor"] = "red";

echo $_SESSION["favcolor"]; //red

$_SESSION["favanimal"] = "rabbit";
echo $_SESSION["favanimal"];  //rabbit

?>
Source by code.tutsplus.com #
 
PREVIOUS NEXT
Tagged: #PHP #Sessions
ADD COMMENT
Topic
Name
2+2 =