Redirect The User After Login
<p>I have a page that only allow the user accessing the page after login. Say that this page is </p>

<blockquote>
  <p><a href="http://www.example.com/secret/data/important.php?id=23&amp;pin=2if24scrtw2323" rel="nofollow">http://www.example.com/secret/data/important.php?id=23&amp;pin=2if24scrtw2323</a>.</p>
</blockquote>

<p>This is the scenario: When the user access the URL without login, the user will be redirected to login page. My login page URL:</p>

<blockquote>
  <p><a href="http://www.example.com/login.php" rel="nofollow">http://www.example.com/login.php</a></p>
</blockquote>

<p>After successfully login, the user will be redirected again automatically to the page that he/she try access in advanced (in this case: > <a href="http://www.example.com/secret/data/important.php?id=23&amp;pin=2if24scrtw2323" rel="nofollow">http://www.example.com/secret/data/important.php?id=23&amp;pin=2if24scrtw2323</a>) Just like facebook.</p>

<p>What's idea behind it? Thx</p>
