|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-07-20 01:51 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 28 21:00:01 2025 UTC |
Description: ------------ I have compiled php in my mandrake linux, with apache 1.3.33. However when i tried to work with session it does not save anything in $_SESSION. My configuration : session.save_handler = files session.use_cookies = 1 session.name = PHPSESSID session.auto_start = 0 session.cookie_lifetime = 0 session.cookie_path = / session.cookie_domain = session.serialize_handler = php session.gc_probability = 1 session.gc_divisor = 100 session.use_trans_sid = 0 This lines of code does not work, everytime ir prints "cookie was set" session_start(); if(!isset($_SESSION['test'])) { $_SESSION['test'] = 'test'; echo '<a href="'.$_SERVER['PHP_SELF'].'">cookie was set</a>'; } else { echo $_SESSION['test']; echo session_id(); } There must be an error with the session functions..