in your php at the top of each page, start a session before opening the tag <html>
<?php session_start(); ?>
<html>
set your session variables somewhere in your php, note that this value must be serializable
<?php $_SESSION["variable"] = "value"; ?>
, , , session_start();
<?php echo $_SESSION["variable"]; ?>
, .
:
, , , , :
hiccup , "", . : fooobar.com/questions/79996/...
session_status. . session_start();
<?php
session_start();
$User = $_SESSION["User"] ? !empty($_SESSION["User"]) : NULL;
?>
if (session_status() !== PHP_SESSION_ACTIVE) { , - ( ), , .