View Single Post
  #1 (permalink)  
Old 12-23-07, 12:41 PM
eprots eprots is offline
Newbie Coder
 
Join Date: Dec 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Question Showing login page if not logged in

I've got a login system set up on my site, and at the moment, if the user isn't logged in, it displays a blank page (with a redirect in the <HEAD> to send users to the login page)

Is it possible to have something that checks if the user is logged in or not, if now, send to login page, if so, show the page.

E.g.

Guest example
1) User tries to access protected page
2) User gets sent to the login page immediately

Member example
1) User tries to access protected page
2) Cookies have (already) been set (because user is logged in), user can view page

I would just rather not have the redirect

Any help/suggestions appreciated.
Reply With Quote