Topic: question regarding user login checking (Read 1536 times)
Kill the googlebot
Posts: 6
44 credits Members referred : 0
« on: Sep 11, 2006, 08:47:00 am »
Right now I'm having a difficult time seeing how to simply see if a user is logged in or not, and if so, what level they are. Some psuedo code:
Code:
if ( is_logged_in() ) { echo their access level, or whatever } else { echo information for non users }
The above task seems difficult because it appears access_page() is required to get the login information but it also requires them to be logged in. So, it instantly redirects to the login when I do not want this. Please provide code that does the above but with no redirects.
Is disabling login redirects the way to solve this, and if so, what's the official way to do that?
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374