+ Reply to Thread
Results 1 to 3 of 3

Thread: Cookie to stop users from using multiple accounts on my forum

  1. #1
    Newbie Redux is an unknown quantity at this point
    Join Date
    Jun 2009
    Posts
    1

    Cookie to stop users from using multiple accounts on my forum

    I'm writing a PHP script for a forum I use.
    When a user is temporarily banned from posting on the forum, it is designed to set a cookie that will disallow other users (or alternate accounts) from posting on the machine that the original user was banned on.

    However, I've hit a bit of a snag. The user could close their browser, clear cookies and create another account, and the script wouldn't be any the wiser.

    Is there any way I could prevent users from deleting the cookie and making a new account?

  2. #2
    Code Warrior Termana is a name known to all Termana is a name known to all Termana is a name known to all Termana is a name known to all Termana is a name known to all Termana is a name known to all Termana's Avatar
    Join Date
    Oct 2008
    Posts
    4,055
    Blog Entries
    6

    Re: Cookie to stop users from using multiple accounts on my forum

    no, there is no way to stop a cookie from being deleted.
    Posted via CodeCall Mobile

  3. #3
    Administrator Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan's Avatar
    Join Date
    Nov 2005
    Location
    Hendersonville, NC
    Posts
    24,556
    Blog Entries
    97

    Re: Cookie to stop users from using multiple accounts on my forum

    Exactly as Termana said. Even if the browser could be told not to delete it (which could easily be used for malicious intent), cookies are stored as a file and could be deleted by anyone that knows where they are store.

    Why not use the IP address? Or better yet, use the MAC address (although you would need to fetch it using JavaScript)?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

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