HELP! How to I get one session tied to all the browser windows??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • prologue
    New Member
    • Nov 2006
    • 2

    HELP! How to I get one session tied to all the browser windows??

    Php: How to I get one session tied to all browser windows???
    I've been making extensive use of sessions for the whole entire log-in and access management system of my website.

    Upon successful login, I assign $_SESSION['userid'] = username.
    If $_SESSION['userid'] is set, then the person has logged on.

    Now the problem arises which I didn't foresee.

    I can log-in as one user, open another browser window and log-in as another user. That's just ridiculously detrimental. Please help me. How do I tie one session to all the browser windows of the same machine?

    Or do have absolutely have no hope and need to ditch sessions and use cookies?? Remember, I've already done the site. It's not easy to change it back. Please helpe me!!!
  • theRamones
    New Member
    • Nov 2006
    • 13

    #2
    Are there any user has more than one id (or unique datas) to log in? i think no
    Except you, the administrator.

    Comment

    • prologue
      New Member
      • Nov 2006
      • 2

      #3
      Originally posted by theRamones
      Are there any user has more than one id (or unique datas) to log in? i think no
      Except you, the administrator.

      Each has only one..
      But then, the session information is lost once the user opens new windows.. That's such a turn-off..

      Comment

      • ronverdonk
        Recognized Expert Specialist
        • Jul 2006
        • 4259

        #4
        You can use a cookie and check if the user is already logged in onthat PC. If so, refuse the new login.

        Ronald :cool:

        Comment

        Working...