From:             [EMAIL PROTECTED]
Operating system: FreeBSD 4.5
PHP version:      4.2.0
PHP Bug Type:     Session related
Bug description:  No Session ID and losing Session Var's between pages

Config line:
./configure '--prefix=/usr/opt/php'
'--with-apxs=/usr/opt/apache/sbin/apxs' '--with-mysql=/usr/opt/mysql'
'--with-pgsql=/usr/opt/pgsql' '--with-mm' '--with-ldap'
'--enable-trans-sid' '--enable-magic-quotes' '--enable-shared'
'--enable-mhash' '--enable-ftp' '--with-gettext' '--enable-mailparse'
'--enable-libgcc' '--enable-calendar' '--with-openssl'

Other details:
Register Globals = OFF
Enable Trans SID = ON
Set Session Cookies = 1
Session Auto Start = 1

I have a login form that asks for a used name and password. Once the user
has been authenticated they are assigned a set of $_SESSION Variables:

----code----
$_SESSION['login'] = $_POST['login'];
$_SESSION['password'] = $_POST['password'];
$_SESSION['logged'] = $_POST['logged'];
$_SESSION['action'] = $action;
$_SESSION['rank_id'] = $rank_id;
----end code ----

When the users click on a link in the menu system all these variables are
lost (ie echos come up blank).

If i add the session_start(); at the top of the page then the variables
are passed without a problem.

If at any time i try to echo out the Session ID (which for me is
SFDICsession) i get a blank value using the following code:

----code----
<?=$_REQUEST['SFIDCsession']?>
----end code -----

thoughts?

Thanks in advance!

-- 
Edit bug report at http://bugs.php.net/?id=17144&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17144&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17144&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17144&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17144&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17144&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17144&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17144&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17144&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17144&r=globals

Reply via email to