bidvertiser

Monday, September 8, 2008

What is a PHP Session?

A way to preserve certain data across subsequent accesses.

A session allows you to store user information on the server for later use (i.e. username, shopping cart items, etc).

A session stores such information in the form of session variables for as long as the user is logged in or the application is running.
SAMPLE CODE:
$_SESSION["username"] = “IMRAN";
$_SESSION[“nickname"] = “delta";

?>

No comments: