I have a page that only allow the user accessing the page after login. Say that this page is
http://www.example.com/secret/data/important.php?id=23&pin=2if24scrtw2323.
This is the scenario: When the user access the URL without login, the user will be redirected to login page. My login page URL:
After successfully login, the user will be redirected again automatically to the page that he/she try access in advanced (in this case: > http://www.example.com/secret/data/important.php?id=23&pin=2if24scrtw2323) Just like facebook.
What's idea behind it? Thx