Skip to main content
November 30, 2006
Question

Passing a session_variable through master-detail pages

  • November 30, 2006
  • 2 replies
  • 204 views
I am using a DW8 Master_Detail server behavior and pages from which I would like to generate an email from a customer to an admin location. As part of that process I would like to carry the customer's email address from the Master page over to the Detail page so that the form there can have that information automatically filled in. I then would like to use the information on the Detal page sent via email , rather than Update or Modify the record itself. The customer's email address is not part of the particular recordset, nor should it be.
Having said all that, my plight is that I have not been able to bring over the session variable 'MM_Username from the Master page to the Detail page. I am able to pass it to the Master page from the customer login screen. Trying to send it as a URL variable from the Master page to the Detail page did not work either. No luck.

I know the technique must be simple but so far all techniques I have tried have bombed . . .

One of the issues is that I can't see how DW is posting the data from the Master page recordset to the Detail page when I look through the code view. Any clarification or assistance would be greatly appreciated.
Thanks, Dale 🙂
This topic has been closed for replies.

2 replies

November 30, 2006
I found the answer. It is pretty hard to use Session Variables if the Session_Start() function isn't intiiated . . . A lesson that I will have no problem remembering !!
Thanks,
Dale :-)
Inspiring
November 30, 2006
It's a session variable, so it exists for the session - there is no need to
"pass" it.

<?php
echo $_SESSION['MM_Username'];
?>

Should print out the name. use it to place the name in the appropriate
field.

HTH,

Jon