question in the same variable session

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oranoos3000
    New Member
    • Jan 2009
    • 107

    question in the same variable session

    hi
    I has write a script with php for login member
    that after arrival member to site a variable session with name username
    ($_session['username'] )
    is created and the other page in site is used that value is username for each user and username is unique for each user
    my question is this
    if several member login at one time this variable session with one name
    for all users that login ,now how is this variable session with name username on the
    server?is this variable unique or identify for each user?
    thanks alot
  • stepterr
    New Member
    • Nov 2007
    • 157

    #2
    Originally posted by oranoos3000
    hi
    I has write a script with php for login member
    that after arrival member to site a variable session with name username
    ($_session['username'] )
    is created and the other page in site is used that value is username for each user and username is unique for each user
    my question is this
    if several member login at one time this variable session with one name
    for all users that login ,now how is this variable session with name username on the
    server?is this variable unique or identify for each user?
    thanks alot
    A session is exactly how it sounds, it keeps track of each users session on your site and is valid for that browser session. If userA logs in then for them $_session['username'] = userA . If userB logs in, $_session['username'] = userB for them. If you want to test this try logging in using Firefox with one username and then log in using a different browser under another username and you'll see how it will work.

    Comment

    • Markus
      Recognized Expert Expert
      • Jun 2007
      • 6092

      #3
      Just a note: $_SESSION needs to be written uppercase.

      Comment

      • oranoos3000
        New Member
        • Jan 2009
        • 107

        #4
        hi
        meaning of your answer this is?
        variable session with the same name for server is unique ?
        does the server identify different user with this variable session with the same name?
        thanks very much for all your trouble

        Comment

        • Markus
          Recognized Expert Expert
          • Jun 2007
          • 6092

          #5
          Each session is unique to the person browsing the website.

          Comment

          Working...