Re: Sessions vs. MySQL records?

From: Date: Tue, 03 Feb 2004 16:26:53 +0000
Subject: Re: Sessions vs. MySQL records?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-176695@lists.php.net to get a copy of this message
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 searches they have performed. > 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? Never use an IP address as a unique identifier unless you're in a closed network environment under your control. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Good news. Ten weeks from Friday will be a pretty good day. */

« previous php.general (#176695) next »