Type: Posts; User: Mr.777
Before redirecting the user to any page, just check if session is not null.
Do you know the concept of session and cookies? If no, go on and read.