Alager

Anonymous
Hi, i\'m making a swedish geeklog site and thougt it would be cool with a diary. But i need to check if the user is logged in, when you inlcude the file auth.inc.php checks if the user is an administrator, does it exist any file that does the same but with logged in users? Question

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Text Formatted Code
if ($_USER['uid'] > 1)
is a simple way to check if the current user is logged in (anonymous user have a uid == 1). bye, Dirk

Alager

Anonymous
OK, thank you!