Jump to content

[SOLVED] Solved! How to get Logged in User Info


yasirbc

Recommended Posts

Depens on what kind of logon system you use. There are serveral:

-Cookies (Mostly used to auto-register the sessions)
-Sessions
-SQl
-HTACCESS

In you're case, you are loggin ppl in with HTACCESS, thats fine for now but i suggest you to begin learning SQL database structures.

As for now, Retrieving the username is simple:

[code]
$v_username = $_SERVER['PHP_AUTH_USER'];
[/code]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.