[PHP] Sessions vs. MySQL records?

2004-02-03 Thread Brian Dunning
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

Re: [PHP] Sessions vs. MySQL records?

2004-02-03 Thread Jason Wong
On Wednesday 04 February 2004 00:05, Brian Dunning wrote: I have an application where I want users to only be allowed 5 searches per day unless they create an account. Unless you require that a user logs in before they can perform a search then there is no meaningful way to track how many

Re: [PHP] Sessions vs. MySQL records?

2004-02-03 Thread Raditha Dissanayake
Hi, By sessions i assume you mean cookies (session information can be stored in other places such as a mysql database). If you do store the information in a cookie, your visitors can easily delete the cooky and get past your protection mechanism. Having said that opting for a mysql table that

Re: [PHP] Sessions vs. MySQL records?

2004-02-03 Thread Adam Bregenzer
On Tue, 2004-02-03 at 11:05, Brian Dunning wrote: 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