SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Wizard
    Join Date
    May 2012
    1 Post(s)
    0 Thread(s)

    Post how to avoid multiple login in one machine

    Hi, can i ask some help in my page,when i am loggin in to my admin page then if i will go to my client page without logging out to my admin will directly logged in to the client do i prevent this so that it will not automatically logged in to my client page.please help me i have no idea how to solve this.

    Thank you in advance.

  2. #2
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    152 Post(s)
    0 Thread(s)
    What data are you writing (such as Session/Cookie) when the login is validated? What are you comparing when you re-visit the site to see if the person is logged in or not?

    Once you can show us that code for both the Admin and the Client side of things, we can work on a solution.
    Be sure to congratulate Patche on earning July's Member of the Month
    Go ahead and blame me, I still won't lose any sleep over it
    My Blog | My Technical Notes

  3. #3
    SitePoint Guru bronze trophy
    Join Date
    Feb 2013
    7 Post(s)
    0 Thread(s)
    When verifying log in and grabbing ID to save to cookie or session, you can also grab the table field "level" or "permissions" and set this value to session as well. Only those who have for example $_SESSION['secure_level'] == "Admin" can enter/view admin pages. An easy adjustment to the client validation script would allow "Admin" to ghost the client section.


Posting Permissions

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