simply set a userid or anything in session when login authentication is true..
and check that set value on every page of website
u r checking authentication on a page..
if(authentication = true)
set something in session.
display content or redirect...(whatever you want)
on the start of every page check if the value is set or not..
if yes page should be displayed otherwise...redirected to login page..