Re: user info?
| From: | Brian Clark | Date: | Sat, 14 Apr 2001 18:40:23 +0000 |
| Subject: | Re: user info? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-48574@lists.php.net to get a copy of this message | ||
Hi Ramiro,
@ 6:48:38 AM on 4/14/2001, Ramiro Radjiman wrote:
...
> I'm just wondering if there is a method to extract user specific
> info when this user connects to the site.
http://www.php.net/manual/nl/function.getenv.php
May be what you're looking for.
> U user must have a handle, but i don't want him to login. So i
> thaught if i can get specific userinfo from the client, this info
> would be his handle to walk trough the site.
> If he logs in it aint a problem :-)
I'd use sessions:
http://www.php.net/manual/nl/ref.session.php
Because you can't depend on something like IP addresses or hostnames
to build Unique IDs because of things like proxies. And I wouldn't
depend solely on cookies either.
-Brian
--
PGP is spoken here: 0xE4D0C7C8
Please, DO NOT carbon copy me on list replies.