Embed PHP in an email to start a session and store variable
===

I'm trying to create a session variable when a user opens the email i send them. Everything is done with two .php files. (mailer.php and register.php)

mailer.php gets all the information for a user and sends them a email with a url to the register.php page.

I want to get a session variable (User_id) from mailer.php into register.php. I've put the following in the email that i send from mailer.php. I doubt it works, but it illustrates what I need.

<pre>
`$message = $Url . "php session_start(); '$_SESSION[id]' = " . $row['member_id'] . " ?>";
...
$mail->MsgHTML($message);
$mail->Send();`
</pre>

And then on the register page

<pre>
`$userID = $_SESSION['id'];`

</pre>