note 14103 added to function.session-register.php

From: Date: Tue, 17 Jul 2001 18:46:34 +0000
Subject: note 14103 added to function.session-register.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-15495@lists.php.net to get a copy of this message
I turned off cookies for sessions using ini_alter("session.use_cookies","0"). The session variables wouldn't be remembered on the page it started on, but *would* be remembered on the page after. Checking the /tmp directory, the sess_* file wouldn't be created until the second page loaded. This didn't work: session_register("reg"); $reg[$foo]["first"] = "Jack"; $reg[$foo]["last"] = "Black"; This worked: $reg[$foo]["first"] = "Jack"; $reg[$foo]["last"] = "Black"; session_register("reg"); They both work if you allow cookies. http://www.php.net/manual/en/function.session-register.php

« previous php.notes (#15495) next »