Registering Variables with a Session : Session Variables « Cookie Session « PHP
- PHP
- Cookie Session
- Session Variables
Registering Variables with a Session
<?php
session_start();
?>
<html>
<head>
<title>Registering Variables with a Session</title>
</head>
<body>
<div>
<?php
$_SESSION['product1'] = "A";
$_SESSION['product2'] = "B";
print "The products have been registered";
?>
</div>
</body>
</html>
Related examples in the same category