I'll explain you in detail
Suppose I login the page and copied the url of Afterlogin Page.
then in same browser session I Clicked on new tab and then pasted my url,,
the problem is here like I m not redirected to Login page as it shows afterlogin page.
Same thing works fine when I use new browser session...