0

php-session is not enable

Владислав Беллик 5 years ago updated 5 years ago 0
Устанавливаю скрипт а установка мне ругается  



Делаю простую проверку через скрипт 

session_start();
if (isset($_GET['step2']))
{
echo 'SESS: ';
echo isset($_SESSION['a_sess_check']) ? 'OK' : 'ERROR';
echo '

recheck';
}
else
{
session_destroy();
session_start();
$_SESSION['a_sess_check'] = true;
header('Location: ?step2');
}


А он выдает SESS: ERROR.  

Мои значения php.ini


session.save_handler = files
session.save_path = "/tmp"
session.use_cookies = 1
;session.cookie_secure =
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = "/tmp"
session.cookie_domain =
session.cookie_httponly =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.bug_compat_42 = on
session.bug_compat_warn = on
session.referer_check =
session.entropy_length = 0
session.entropy_file =
;session.entropy_length = 16
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.hash_function = 0
session.hash_bits_per_character = 5
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"


Что делать? Как поступать?