You are here: Re: Capturing user login Information of windows « PHP Programming Language « IT news, forums, messages
Re: Capturing user login Information of windows

Posted by Csaba Gabor on 06/10/10 11:53

sachu wrote:
> Hi Csaba,
> The solution given by you works only on the server side....[In the

Of course.
Good that you give an example.

> sense, the system which runs apache server]. To be clear lets say s1 is
> server comp and u1 as the user of this server. s2 as the client comp
> and u2 as the user of this comp.
> When i ran the code on the comp u2 it returned me the system name as s1
> and the user name as u1.I want it to return the user name of the system
> where this php page is opened.
> Please help me..

By what right should s1 have access to any knowledge of s2, or users
thereof? s1 gets only the information that s2 chooses to send, and
that is fairly minimal because of privacy concerns (ie. the IP address
and sometimes info about the operating system/browser). And you can
see this info using phpinfo() or in your server logs. The access to s2
of php that is running on s1 is zilch, unless you are leaving out a big
aspect of your situation.

In general, if you want to match up a client's request with a previous
request, set a cookie in the client's browser or use sessions.

Csaba

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация