Re: Session and output buffering

From: Date: Tue, 16 Jul 2002 18:48:18 +0000
Subject: Re: Session and output buffering
Groups: php.general 
Request: Send a blank email to php-general+get-107949@lists.php.net to get a copy of this message
You have to give the variable value before registering it, from my experience. $var = "123 Sesame Street"; session_register($var); Also, I don't believe you need to use session_unset(), since you are already destroying the session information. If you are getting errors, it would be helpful if you include those in your message so that we might be able to deduce the error from it's cryptic nature :o) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> "Divyank Turakhia" <divyank.t@directi.com> 07/16/02 02:46PM >>> >>> I have set output_buffering = On in my php.ini file, since I need this for my application. When the user logins I want to destroy any current session and start a new session. I have included the below in my code for the same. But for some reason all my old data is available in the session. session_start(); session_unset(); session_destroy(); session_start(); session_register("somevariable"); Can anyone figure out where I may be going wrong. Warm Regards, Divyank Turakhia ---------------------- http://www.directi.com ---------------------- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#107949) next »