#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    1
    Rep Power
    0
    Hi, I'm currently writing a PHP-MySQL bulletin board, similar in function to the UBB that this website uses. This question is more cookie-related than PHP though.

    What I'm wondering is how does the UBB track when the visitor viewed each individual thread, so that it can tell them that there has been updates since the last visit? I can set cookies for each thread of course, but that's not desirable, since there could be many of them, and so the visitor would be constantly sending out heaps of cookies.

    So if not one cookie for each thread, what then? Is it kept in the server database, linked to the visitor's information?
  2. #2
  3. No Profile Picture
    ads
    Guest
    Devshed Newbie (0 - 499 posts)
    I will be thankful if somebody tells me where I will get bulletin board code, similar in function to the UBB that this website uses.
  4. #3
  5. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    19
    The cookie contains the date/time of the last visit (or a pointer to a db record containing the same information). This is then compared to the date/time of the messages.

    Simple.

Similar Threads

  1. Replies: 2
    Last Post: August 18th, 2004, 11:45 PM
  2. Board PHP tag escape problem seems fixed
    By draelon in forum PHP Development
    Replies: 1
    Last Post: February 13th, 2004, 04:30 PM
  3. Replies: 2
    Last Post: February 2nd, 2004, 08:39 AM
  4. PHP Visitor Tracking Engine
    By deanbayley in forum PHP Development
    Replies: 3
    Last Post: January 15th, 2004, 07:05 AM
  5. session control in php
    By scooby2000 in forum PHP Development
    Replies: 1
    Last Post: January 9th, 2004, 08:50 PM

IMN logo majestic logo threadwatch logo seochat tools logo