Bug #17144 Updated: No Session ID and losing Session Var's between pages
| From: | sniper@php.net | Date: | Sat, 29 Jun 2002 02:16:54 +0000 |
| Subject: | Bug #17144 Updated: No Session ID and losing Session Var's between pages | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-12485@lists.php.net to get a copy of this message | ||
ID: 17144
Updated by: sniper@php.net
Reported By: eric.jones@hua.army.mil
-Status: Open
+Status: Feedback
Bug Type: Session related
Operating System: FreeBSD 4.5
PHP Version: 4.2.0
New Comment:
Question is, does it work when you have session_start() or not?
Previous Comments:
------------------------------------------------------------------------
[2002-06-28 22:14:46] eric.jones@hua.army.mil
It was my understanding from the online docs that if i have session
auto start set to on (ie 1) that i would not need the session_start()
function. but if this is not the case then i guess i do not have a bug
:)
------------------------------------------------------------------------
[2002-06-27 22:45:33] sniper@php.net
session_start() is _required_ even with the new $_SESSION variable..was
this the problem?
------------------------------------------------------------------------
[2002-05-13 19:07:32] eric.jones@hua.army.mil
also trying to echo session_id(); with no success.
Still not working in 4.2.1 released May 13th
Also i can't Edit my submission
------------------------------------------------------------------------
[2002-05-10 14:57:44] eric.jones@hua.army.mil
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 this bug report at http://bugs.php.net/?id=17144&edit=1