Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
session_start();
session_start()
$_SESSION['value_identifier'] = "value";
$_SESSION
session_start()
<?php
session_start();
$_SESSION['message'] = "Hello world!<br />\n";
function Message() {
return "Function: "$_SESSION['message'];
}
class Message {
function Get() {
return "Object: ".$_SESSION['message'];
}
}
echo $_SESSION['message'];
echo Message();
$Message = new Message();
echo $Message->Get();
?>
<?php
// Initialize the session.
session_start();
// Unset all of the session variables.
$_SESSION = array();
// Finally, destroy the session.
session_destroy();
?>