Posts: 199
Location: High Wycombe, Buckinghamshire, London
|
The way this website does it is if the user is not logged in, they are sent to login.php with the querystring having the page they were viewing. This is the easiest and most common way to do it.
But the way you want to, think about it, after they have logged on, they will be sent back to the login page (unless you are using PagePostBack).
To get the referring page:
Code:
Request.ServerVariables["HTTP_REFERRER"];
__________________
[ Insert witty, yet highly intelligent signature here ]
|