Last active
December 20, 2017 21:22
-
-
Save pastyrMisha/f3f02697100ce318647643af22983295 to your computer and use it in GitHub Desktop.
СЕССИИ ($_SESSION)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
session_start(); | |
$num = (isset ($_SESSION["num"])) ? $_SESSION["num"] : 0; | |
$num++; | |
$_SESSION["num"] = $num; | |
echo "Пользователь обновил страницу $num раз"; | |
// session_destroy (); /*- удаляет сессию*/ | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment