Hello,
I have a question regarding making a value in an URL into a session variable. I have application A that has a hyperlink into application B. Application A does not require you to login, but application B does. I use AD for authentication. When I click the link in application A, a new window pops up and if the user is not logged into application B (which is most of the time), they will be asked to login. Once the user successfully logs in, the user is then directed to an add page in application B using values in the URL. An example of the URL looks like this: http://webserver/application/application_add.php?ID=1234&FIELD=Bob'>http://webserver/application/application_add.php?ID=1234&FIELD=Bob. This works great.
Now I have a page redirect after successful login if the user does not have an email address in their user account. The application does redirect to the users account and makes them enter and save their email address if they do not have an email address in their account.
When the user clicks save, I would like them to be redirected to the original URL from application A: http://webserver/application/application_add.php?ID=1234&FIELD=Bob'>http://webserver/application/application_add.php?ID=1234&FIELD=Bob.
When a user does not have to enter their email address, I have this in the add page: before process and works well:
if (@$_REQUEST["ID"])
{
$_SESSION["ID"] = $_REQUEST["ID"];
}
if (@$_REQUEST["FIELD"])
{
$_SESSION["FIELD"] = $_REQUEST["FIELD"];
}
If a person has to enter their email first before proceeding to the add page, how do I keep the values of the URL values? Is there an event I can do in the login page to make them a session variable so I can use them or do I have to do something in the events of the page (account page) the user is directed to?
Thanks in advance,
Brian