Re: question about taking post to session
| From: | Leon Mergen | Date: | Sat, 21 Sep 2002 11:26:51 +0000 |
| Subject: | Re: question about taking post to session | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-117085@lists.php.net to get a copy of this message | ||
"Randy Johnson" <icgphp@icecoldgold.com> wrote in message
news:000901c2613d$e9223e30$c100a8c0@rjmarket...
> how could i take all the variables in $_POST[""] and move them to
> $_SESSION[""]?
If I understand correct, you will want something like this:
<?
$var = $_POST["var"];
session_start();
session_register("var");
?>
And now, in all the scripts on your site, when you execute the
session_start() function, $_SESSION["var"] contains the original contents of
$_POST["var"] .
Grtz,
Leon