php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33776 sessions does not saved
Submitted: 2005-07-20 00:53 UTC Modified: 2005-07-20 01:51 UTC
From: fatih at muzikkutusu dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.4.0 OS: mandrake linux
Private report: No CVE-ID: None
 [2005-07-20 00:53 UTC] fatih at muzikkutusu dot com
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..


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-20 01:51 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Nov 28 21:00:01 2025 UTC