Intranet – force users to be logged in.
-
I’m using WordPress 2.2.1 and I need to create an intranet for an organization with employees all over the world. We don’t need high-level security, but I would like to set things up so that a user must be logged in to see the site.
Is there code I can put in the header that checks if a user is logged in, and if not, sends the user to wp-login.php? Or a plugin that does materially the same thing?
I do not want to do server-level folder protection, because I would rather show the user a web page to log in as opposed to a popup screen.
Also, I want to make sure that the solution is reasonably efficient and won’t slow users down too much, since they already may be on slow connections. So if there is a most-efficient way to do this with cookie-checking or something else like that, that would be super.
I’m a programming moron, so please be patient.
Thanks for advice.
-Sara, [email protected]
- The topic ‘Intranet – force users to be logged in.’ is closed to new replies.