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.