Hi,
I'm using php4 with PWS (I know, I know).
Anyway, I'm happily tracking what users are doing when they travel through the site.
Except in the following scenario"
The current page is "registration.php"
the session has the following variables registered: user, firstName - (session_register('user'); session_register('firstName');
within it is the following form:
<form method="post" action="doregistration.php">
...various text fields to fill (code at the bottom for those intersted)...
</form>
It goes through to 'doregistration.php', but any page I go to from there doesn't pick up user (in any form, including session_is_registered('user)) or $firstName.
When I dump the $HTTP_SESSION_VARS to the page on 'doregistration.php' $user is there, with the value I expect, but when I click on a link, it vanishes and I'm told to log in again.
This only happens when a form redirects the user to another page, twice now.
Any advice?
Thanks
Tim
Code for the interested
<tr><td><b>First Name:</b></td><td><input type="text" name="fName" value="<?php if (isset($fName)){echo $fname;}?>" size="25" maxlength="50"></td></tr>
<tr><td><b>Last Name:</b></td><td><input type="text" name="lName" size="25" maxlength="50"></td></tr>
<tr><td><b>Job Title:</b></td><td><input type="text" name="title" size="25" maxlength="50"></td></tr>
<tr><td><b>Email:</b></td><td><input type="text" name="email" size="25" maxlength=25"></td></tr>
<tr><td><b>Company:</b></td><td><input type="text" name="company" size="25" maxlength="50"></td></tr>
<tr><td><b>Company Phone:</b></td><td><input type="text" name="cophone" size="25" maxlength="25"></td></tr>
<tr><td><b>Industry:</b></td><td><input type="text" name="industry" size="25" maxlength="25"></td></tr>
<tr><td><b>City</b></td><td><input type="text" name="city" size="25" maxlength="25"></td></tr>
<tr><td><b>Country</b></td><td><input type="text" name="country" size="25" maxlength="25"></td></tr>
<tr><td><b>Choose a Password:</b></td><td><input type="password" name="password" size="25" maxlength="25"></td></tr>
<tr><td><b>Confirm password:</b></td><td><input type="password" name="passwordConfirm" size="25" maxlength="25"></td></tr>