Q: Browser ID assumption - Not able to differentiate multiple users on 1 PC

This is a discussion on Q: Browser ID assumption - Not able to differentiate multiple users on 1 PC within the PHP Language forums, part of the PHP Programming Forums category; I have no intention of using any such mechanism to distinguish users of my PHP applications, but I was wondering (...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2006
Peter Fox
 
Posts: n/a
Default Q: Browser ID assumption - Not able to differentiate multiple users on 1 PC

I have no intention of using any such mechanism to distinguish users of
my PHP applications, but I was wondering (and it isn't easy for me to
test) ...

....On a single PC with a single browser where multiple users log-in to
it eg on a PC called FOO there might be users MARY and JOHN is it the
general practice for browsers to have separate cookie/cache/password
files so that if JOHN looks at my web page and I previously sent him a
"you are John" cookie he'll be identified by it and not by the "you are
Mary" cookie that Mary obtained between times.




--
PETER FOX Not the same since the submarine business went under
peterfox@eminent.demon.co.uk.not.this.bit.no.html
2 Tees Close, Witham, Essex.
Gravity beer in Essex <http://www.eminent.demon.co.uk>
Reply With Quote
  #2 (permalink)  
Old 01-05-2006
Justin Koivisto
 
Posts: n/a
Default Re: Q: Browser ID assumption - Not able to differentiate multipleusers on 1 PC

Peter Fox wrote:
> ...On a single PC with a single browser where multiple users log-in to
> it eg on a PC called FOO there might be users MARY and JOHN is it the
> general practice for browsers to have separate cookie/cache/password
> files so that if JOHN looks at my web page and I previously sent him a
> "you are John" cookie he'll be identified by it and not by the "you are
> Mary" cookie that Mary obtained between times.


IME, yes, the cookies will be specific to the different accounts on the
computer. This is especially true with *nix, mac osx, win xp/2000/nt.
The ones that I am unsure of are Mac OS <= 9.2, win <= 98/me, and any
other operating system not mentioned above.

HTH

--
Justin Koivisto, ZCE - justin@koivi.com
http://koivi.com
Reply With Quote
  #3 (permalink)  
Old 01-05-2006
Mladen Gogala
 
Posts: n/a
Default Re: Q: Browser ID assumption - Not able to differentiate multiple users on 1 PC

On Thu, 05 Jan 2006 09:18:50 +0000, Peter Fox wrote:

> I have no intention of using any such mechanism to distinguish users of
> my PHP applications, but I was wondering (and it isn't easy for me to
> test) ...
>
> ...On a single PC with a single browser where multiple users log-in to
> it eg on a PC called FOO there might be users MARY and JOHN is it the
> general practice for browsers to have separate cookie/cache/password
> files so that if JOHN looks at my web page and I previously sent him a
> "you are John" cookie he'll be identified by it and not by the "you are
> Mary" cookie that Mary obtained between times.


You probably want something like this:

<?php
$agent = $_SERVER['HTTP_USER_AGENT'];
if (preg_match('/firefox/i', $agent))
echo "Congratulations! You are using the One True Browser!<br>";
else
die("Apage, Satanas! I don't serve those who don't use Firefox!<br>");
?>


--
http://www.mgogala.com

Reply With Quote
  #4 (permalink)  
Old 01-08-2006
Tim Roberts
 
Posts: n/a
Default Re: Q: Browser ID assumption - Not able to differentiate multiple users on 1 PC

Mladen Gogala <gogala@sbcglobal.net> wrote:
>
>On Thu, 05 Jan 2006 09:18:50 +0000, Peter Fox wrote:
>
>> I have no intention of using any such mechanism to distinguish users of
>> my PHP applications, but I was wondering (and it isn't easy for me to
>> test) ...
>>
>> ...On a single PC with a single browser where multiple users log-in to
>> it eg on a PC called FOO there might be users MARY and JOHN is it the
>> general practice for browsers to have separate cookie/cache/password
>> files so that if JOHN looks at my web page and I previously sent him a
>> "you are John" cookie he'll be identified by it and not by the "you are
>> Mary" cookie that Mary obtained between times.

>
>You probably want something like this:


You probably want to READ the posts before replying.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:30 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0