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" <[EMAIL PROTECTED]> 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php