PHP 4.0.6 Sessions Not Working...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Here's my test script:

    <?php
    session_start();
    echo session_id();
    echo ":".isset($HTTP_SESSION_VARS['user']);
    print_r($HTTP_SESSION_VARS);
    echo "<hr/>Now: ".$HTTP_SESSION_VARS['user'];
    if (empty($HTTP_SESSION_VARS['user'])) {
            $HTTP_SESSION_VARS['user'] = "beckman";
    } else {
            $HTTP_SESSION_VARS['user'] = "";
    }
    echo "<hr/>After: ".$HTTP_SESSION_VARS['user'];

If sessions worked correctly, the "user" session variable would bounce back
and forth between the "Now:" and "After:" statements.

On a box running Apache/1.3.22 with PHP/4.0.6, sessions enabled, even the
session files are being created in /tmp, the sessions don't seem to get
saved, even though the session_id stays the same (the cookie is set on the
client).

/tmp is writable, and session files ARE being written to that directory;
however, no data is stored.

The box is run by Interland, and not using an upgraded version of PHP.

Is this a flaw in 4.0.6, or am I doing something wrong?

Beckman
---
PHP Version 4.0.6
session.use_trans_sid 1   1
Session Support enabled

Directive   Local Value Master Value
session.auto_start
    Off Off
session.cache_expire
    180 180
session.cache_limiter
    nocache nocache
session.cookie_domain
    soberrecovery.com   soberrecovery.com
session.cookie_lifetime
    0   0
session.cookie_path
    /   /
session.cookie_secure
    Off Off
session.entropy_file
    no value    no value
session.entropy_length
    0   0
session.gc_maxlifetime
    1440    1440
session.gc_probability
    0.01    0.01
session.name
    PHPSESSID   PHPSESSID
session.referer_check
    no value    no value
session.save_handler
    files   files
session.save_path
    /tmp    /tmp
session.serialize_handler
    php php
session.use_cookies
    On  On
---------------------------------------------------------------------------
Peter Beckman                                                  Internet Guy
beckman@xxxxxxxxxxxxx                             http://www.purplecow.com/
---------------------------------------------------------------------------

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux