note 7745 added to session_register
| From: | kc0 at hotmail dot com | Date: | Sun, 13 Aug 2000 20:07:22 +0000 |
| Subject: | note 7745 added to session_register | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-1799@lists.php.net to get a copy of this message | ||
If you can't change the session_registered vars by using the post method, you can use this
approach.. not very attractive, but hey, it worked for me!
page1:
session_start();
session_register("temp_var");
[start a form, submit to form 2]
echo <input name=temp_var type="text" value"$var">;
[end a form]
FORM2:
session_start()
$var=$temp_var;
session_unregister("temp_var");
this is how i change my vars.
hope there will be a better solution soon!!
http://www.php.net/manual/function.session-register.php