superglobals.php

Shows how to leverage the WordPress function current_user_can, and use transients to cache the output for checking the user's session / login cookie.