Sessions vs. MySQL records?
| From: | Brian Dunning | Date: | Tue, 03 Feb 2004 16:05:14 +0000 |
| Subject: | Sessions vs. MySQL records? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-176687@lists.php.net to get a copy of this message | ||
I have an application where I want users to only be allowed 5 searches per day unless they create an account.
There may not be a simple answer to this, but in general, would it be preferred to do this with 24-hour session variables, or by writing a MySQL record for each visitor with the date and their IP address and tracking their usage count?
Thanks in advance for any thoughts.
- Brian