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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Peter Fox

    #1

    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@eminen t.demon.co.uk.n ot.this.bit.no. html
    2 Tees Close, Witham, Essex.
    Gravity beer in Essex <http://www.eminent.dem on.co.uk>
  • Justin Koivisto

    #2
    Re: Q: Browser ID assumption - Not able to differentiate multipleusers on 1 PC

    Peter Fox wrote:[color=blue]
    > ...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.[/color]

    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.co m

    Comment

    • Mladen Gogala

      #3
      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:
      [color=blue]
      > 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.[/color]

      You probably want something like this:

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


      --
      大红鹰娱乐平台采用顶级加密技术,确保用户数据与交易的安全无虞,让玩家能够放心畅玩。


      Comment

      • Tim Roberts

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

        Mladen Gogala <gogala@sbcglob al.net> wrote:[color=blue]
        >
        >On Thu, 05 Jan 2006 09:18:50 +0000, Peter Fox wrote:
        >[color=green]
        >> 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.[/color]
        >
        >You probably want something like this:[/color]

        You probably want to READ the posts before replying.
        --
        - Tim Roberts, timr@probo.com
        Providenza & Boekelheide, Inc.

        Comment

        Working...