<?php
session_start();
//echo "_SERVER["PHP_SELF']''.':'.'<br>';
echo $_SERVER['PHP_SELF'].'<br>'.'Returns the filename of the currently executing script'.',<hr>';
echo $_SERVER['GATEWAY_INTERFACE'].'<br>'.'Returns the version of the Common Gateway Interface (CGI) the server is using'.',<hr>';
echo $_SERVER['SERVER_NAME'].'<br>'.'Returns the name of the host server (such as www.w3schools.com)'.',<hr>';
echo $_SERVER['SERVER_SOFTWARE'].'<br>'.'Returns the server identification string (such as Apache/2.2.24)'.',<hr>';
echo $_SERVER['SERVER_PROTOCOL'].'<br>'.'Returns the name and revision of the information protocol (such as HTTP/1.1)'.',<hr>';
echo $_SERVER['PHP_SELF'];
echo '<br>';
echo $_SERVER['SERVER_NAME'];
echo '<br>';
echo $_SERVER['HTTP_HOST'];
echo '<br>';
echo $_SERVER['HTTP_REFERER'];
echo '<br>';
echo $_SERVER['HTTP_USER_AGENT'];
echo '<br>';
echo $_SERVER ['SCRIPT_NAME'];
echo '<br>';
echo $_SERVER['REMOTE_ADDR'];
echo '<br>';
echo $_SERVER['SERVER_ADDR'];
//----------------------------
echo "---------------------".'<hr>'.'<hr>'.'<hr>';
$token='12fdgvfd45fs5d4fv';
$_SESSION['token'];
echo $_SESSION['token'];
$name='basket_item';
$value='2';
setcookie($name,$value,time()+10);
echo time();
if(isset($_COOKIE[$name])){
echo $name.' '.'is set';
}else{
echo $name.' '.'not is set';
}