Login Problem

Discussion in 'PHP' started by rekharajbans, Jun 18, 2009.

  1. #1
    can u tell me if one user login one site on one system.and when he try to login same site in other system than show user already login.how can i show it.
     
    rekharajbans, Jun 18, 2009 IP
  2. ToddMicheau

    ToddMicheau Active Member

    Messages:
    183
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #2
    o.o Um.

    I'm guessing you have two basic login systems on one site, and you want to login the user under both systems with one form- more or less.

    That all depends on how the systems were coded, you would either have to combine both login scripts, or modify System 2 to recognize System 1's cookie/session (which ever they use to track the logged in user).

    Unless you know what your doing I would suggest hiring someone to do this for you, as you could end up breaking both 'systems'. . .
     
    ToddMicheau, Jun 18, 2009 IP
  3. aquasonic

    aquasonic Well-Known Member

    Messages:
    90
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    115
    #3
    It sound like your login system is using session variable to authenticate.

    You've probably got the same session variable registered so both sites think they are logged in.

    I.e. if the session variable $joe is registered with the variable "bloggs" and both sites are looking for the session variable $joe to have the variable "bloogs" it will let them in.

    For a simple fix, change either the name or value or one sites session variable or change both name and variable.

    To be fair though, if that is how you've coded the login page, you should probably spend a day looking at cryptography and learning how to make pages more secure! (although I don't know how secure you need it).


    Andrew
     
    aquasonic, Jun 18, 2009 IP