|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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.
|
|
#3
|
|||
|
|||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > PHP Development > Session tracking in a PHP bulletin board |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|