ID: 14880 Updated by: [EMAIL PROTECTED] -Reported By: [EMAIL PROTECTED] +Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Session related Operating System: Debian 3.0 (Woody) PHP Version: 4.1.0 New Comment:
Your PHP is too old, try current CVS version. If you still have the problem, could you open _new_ bug report? (Since the cause would be differ from originally reported) Previous Comments: ------------------------------------------------------------------------ [2002-03-16 19:17:19] [EMAIL PROTECTED] I am running 4.2.0-dev also and $_SESSION is not stored properly i.e. not accessible after it has been set. e.g. <? session_start(); if ($_SESSION["foo"]){ echo $_SESSION["foo"]; }else{ echo "foo is not registered<br>"; $_SESSION["foo"] = "foo is registered"; } ?> so first time through, it should set it - subsequent reloads it should be already set? ------------------------------------------------------------------------ [2002-02-14 02:31:57] [EMAIL PROTECTED] I've looked at the (updated) documentation. --snip If you are using $HTTP_SESSION_VARS/$_SESSION, do not use session_register(), session_is_registered() and session_unregister() unless you know internal of session module. --snap that's it! thx yohgaki btw. the following works session_start(); $_SESSION["foo"] = "foo is registered"; if ($_SESSION["foo"]){ echo $_SESSION["foo"]; }else{ echo "foo is not registered<br>"; } ------------------------------------------------------------------------ [2002-02-03 20:05:39] [EMAIL PROTECTED] To reporter: Just a reminder. Please report the result when you check ------------------------------------------------------------------------ [2002-01-13 12:31:29] [EMAIL PROTECTED] I tried both. (files/mm) I killed my dev-system and I'm to busy to fix it. I'm out for a month. (I have exams and I must learn!) Thanks for your patience. ------------------------------------------------------------------------ [2002-01-12 21:05:53] [EMAIL PROTECTED] What is your session save handler? mm? If so, you *MUST* use session_module_name() before starting session to use mm save handler for now. (There is bug in module loading.... It's a known issue ;) For some reason, mm save hanlder stopped working for me recently :( Anyway. Here is my configure. './configure' \ '--with-apxs' \ '--without-mysql' \ '--with-bz2' \ '--with-crack=/usr/local' \ '--with-curl' \ '--with-ftp' \ '--with-iconv' \ '--with-mhash' \ '--with-mcrypt' \ '--with-msession' \ '--with-mm' \ '--with-openssl' \ '--with-pgsql' \ '--with-regex=system' \ '--with-zlib' \ '--with-dom' \ '--with-dom-xslt' \ '--with-snmp' \ '--with-gd' \ '--enable-gd-native-ttf' \ '--with-freetype-dir=/usr' \ '--with-jpeg-dir=usr' \ '--with-png-dir=/usr' \ '--with-xpm-dir=/usr/X11R6' \ '--enable-ctype' \ '--enable-shmop' \ '--enable-sysvsem' \ '--enable-sysvshm' \ '--enable-sockets' \ '--enable-mbstring' \ '--enable-mbstr-enc-trans' \ '--enable-mbregex' \ '--enable-memory-limit' \ '--enable-wddx' \ '--enable-mailparse' \ '--with-xml' \ '--with-xmlprc' \ '--enable-debug' \ ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/14880 -- Edit this bug report at http://bugs.php.net/?id=14880&edit=1