getting a user name
Moderator: General Moderators
getting a user name
Hello....Im developing a public forum to use it at a local network, where users log into a network domain in their PC(windows) , what i wnat to do it's depending on which user has logged in to my local domain, at the time he access to my public forum , get his username and pass it directly to the forum, instead of using cookies or validate a user name in a data base.....did i make my self clear?? or is it too confusing
well, i hope you can help me....thanks....
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
Try
and check for a variable which contains your network login (on my server it's $_SERVER['REMOTE_USER']).
Mac
Code: Select all
echo '<pre>';
print_r($_SERVER);
echo '</pre>';Mac