Sessions

Session support in PHP consists of a way to preserve certain data across subsequent accesses. This enables you to build more customized applications and increase the appeal of your web site. All information is in the Session reference section.

Коментарии

How to start a session and track it by Pageviews, in this example, if there arent any pageviews, we will get 1.

<?php
session_start
();

if(isset(
$_SESSION['views']))
{
$_SESSION['views']=$_SESSION['views']+1;
}
else
{
$_SESSION['views']=1;
echo 
"Views="$_SESSION['views'];
}
?>
2012-03-05 09:00:25
http://php5.kiev.ua/manual/ru/features.sessions.html

    Поддержать сайт на родительском проекте КГБ