Page Refresh Retain Location
Posted: Sun Feb 19, 2006 4:29 pm
Two quick questions that sorta fall under the subject:
1. How do you make it so that when a user tries to go to a page and isn't logged in they get prompted to login and then get directed to the page they'd previously requested? Right now I redirect them to the login page, but upon login they go to a specific location within the system instead of the page they'd been attempting to access. Of course, they could just paste the URL at that point, but is there a good method to automate this?
2. How do you make it so that when a user refreshes the page it remains where they were on the page rather than resetting to the top? Is there any easy way to do this?
1. How do you make it so that when a user tries to go to a page and isn't logged in they get prompted to login and then get directed to the page they'd previously requested? Right now I redirect them to the login page, but upon login they go to a specific location within the system instead of the page they'd been attempting to access. Of course, they could just paste the URL at that point, but is there a good method to automate this?
2. How do you make it so that when a user refreshes the page it remains where they were on the page rather than resetting to the top? Is there any easy way to do this?