You would add that column to the vistors or users table in your database and then store it as a session variable.
Specify a new, blank page as the success page for the login and on that page have just the code:
<?php
session_start();
header("location: ".$_SESSION['StoredPageColumnInSession']);
?>
That will redirect to the page in the session.