Re: [Q] session variables wouldn't keep contents.
| From: | Chung Ha-Nyung | Date: | Wed, 14 Mar 2001 08:07:02 +0000 |
| Subject: | Re: [Q] session variables wouldn't keep contents. | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-43787@lists.php.net to get a copy of this message | ||
>>>>> "YO" == Yasuo Ohgaki <yohgaki@hotmail.com> writes:
> As I posted right before, file is created in /tmp.
> Franlking speaking, I did not make any change to default settings of php.ini
> In other words,
> session.save_handler = files
> session.save_path = /tmp
YO> Then , as I wrote previous mail, you should at least have session data files
YO> there. (I forgot the exact name. I think it contains session id) Do you see any
YO> session data files? Is your session id changing everytime? or you don't have
YO> session id at all? Do you see session module info in your phpinfo? Is it
YO> correct? Do you use E_ALL for error reporting? (You may see some errors like
YO> oops header already sent)
Certainly are there data files which look like "sess_sessionid" in /tmp and
changed everytime when I reload the web page. And sessoinid is the same as
the value of cookie variable, PHPSESSID. Up to this stage does things seem
to go well. I think so.
phpinfo result looks correct...almost.
*THERE'S NO HTTP_SESSION_VARS* in PHP variables!! although I used session_start()
and session_register()! It is incorrect, isn't it?
I can see session module info in my phpinfo and it is correct. ;(
Surely I set
error_reporting = E_ALL
display_errors = On
display_startup_errors = On
and no error/warning messages in the page.
YO> Something must be wrong, since your environment is similar to that I have.
I found something!
If I set register_globals to Off in php.ini, then session *seems* to work well.
In /tmp, session data file contains both of variable name and value and I can
use $HTTP_SESSION_VARS["variable"].
BUT, as before is there no HTTP_SESSION_VARS in PHP variables section of phpinfo.
I'm so confused and think things are getting weirder. ;(
YO> Regards,
YO> Yasuo Ohgaki
YO> --
YO> PHP General Mailing List (http://www.php.net/)
YO> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
YO> For additional commands, e-mail: php-general-help@lists.php.net
YO> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
Chung Ha-Nyung <alita@kldp.org>