session variables
I want to create and pass session variables. The adobe document at http://kb2.adobe.com/cps/165/tn_16563.html tells me to use
<?php
session_start();
session_register("sessFirstName");
$sessFirstName = $HTTP_POST_VARS['txtFirstName'];
?>
When I test, the response is that this script relies on a side effect of php 4xx and that it requires register_globals to be on, which I don't want.
The warning disappeared but then when I went to log in again with new values, the values on the recipient page were the old ones. So, I inserted a Logout and of course that took me to the loggedout. page but didn't erase the values, which, when I logged in again, were still the old ones. I know that by default the values remain for 20 minutes, but shouldn't they change when a new log in with new values is attempted?
Does anyone have the updated version of the php snippet from above? Thanks.
