Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    Regular Coder
    Join Date
    Aug 2002
    Posts
    433
    Thanks
    3
    Thanked 0 Times in 0 Posts

    1 profile n logins

    Hi. Take a look at my problem. I have a log in menu that users use it in order to authenticate. If he is registered then i create a new session from him. The problem is that if another user tries to log in with the same user name, then it wil be logged in succesfully!!! I only want to log out the first user

  • #2
    Regular Coder
    Join Date
    Feb 2003
    Posts
    101
    Thanks
    0
    Thanked 0 Times in 0 Posts
    as in your previous post, u probably will need store your user's sessions in the database or in the file.
    ofcourse unless I'm missing some php features

  • #3
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,058
    Thanks
    10
    Thanked 96 Times in 94 Posts
    I do not get it ? either you are allowing the same username to be used more than once or you are authenticating purely against a username ? both bad ideas
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #4
    Regular Coder
    Join Date
    Aug 2002
    Posts
    433
    Thanks
    3
    Thanked 0 Times in 0 Posts

    xm...ok

    telle me about this "uthenticating purely against a username"

  • #5
    Regular Coder
    Join Date
    May 2002
    Location
    Virginia, USA
    Posts
    621
    Thanks
    0
    Thanked 6 Times in 6 Posts
    in the username/password database, add a field called "logged_in."


    When a user attempts to login:

    if good username & good password:

  • #6
    me'
    me' is offline
    Senior Coder
    Join Date
    Nov 2002
    Location
    Warwickshire, England
    Posts
    1,229
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: xm...ok

    Originally posted by alaios
    telle me about this "uthenticating purely against a username"
    just requiring a valid username to login, no password. Extremely unsecure.
    David House - Perfect is achieved, not when there is nothing left to add, but when there is nothing left to take away. (Antoine de St. Exupery).
    W3Schools | XHTML Validator | CSS Validator | Colours | Typography | HTML&CSS FAQ | Go get Mozilla Now | I blog!

  • #7
    Senior Coder missing-score's Avatar
    Join Date
    Jan 2003
    Location
    UK
    Posts
    2,194
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by Celtboy
    in the username/password database, add a field called "logged_in."


    When a user attempts to login:

    if good username & good password:
    The logged_in field is ok, but what happens if the user suddenly shuts down their browser. Next time they come back they would still be logged in in the db, and then not be able to login?

  • #8
    Regular Coder dniwebdesign's Avatar
    Join Date
    Dec 2003
    Location
    Carrot River, Saskatchewan
    Posts
    845
    Thanks
    15
    Thanked 10 Times in 10 Posts
    You could set it up so a small window pops up (using the same sessions on all the pages) which could reset the database value.
    Dawson Irvine
    CEO - DNI Web Design
    http://www.dniwebdesign.com

  • #9
    Senior Coder missing-score's Avatar
    Join Date
    Jan 2003
    Location
    UK
    Posts
    2,194
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thats ok unless they have popups/javascript disabled.

  • #10
    Regular Coder
    Join Date
    Aug 2002
    Posts
    433
    Thanks
    3
    Thanked 0 Times in 0 Posts

    xm...

    You could set it up so a small window pops up (using the same sessions on all the pages) which could reset the database value.


    can u explain that? What the pop up window will provide?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •