Re[2]: [PHP-DB] pagination php mysql
| From: | sysvic at gmail dot com | Date: | Wed, 22 Oct 2008 03:06:02 +0000 |
| Subject: | Re[2]: [PHP-DB] pagination php mysql | ||
| References: | 1 2 3 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-63315@lists.php.net to get a copy of this message | ||
> I'm not sure what you're trying to say here. There shouldn't be any
> errors in session variables and sessions needn't rely on cookies for
> propagation, that's just the default configuration. It's true that
> sessions can be hijacked, but the danger is slight and easily
> mitigated.
yes, but protecting sessions and cookies can be a complicated issue.
Danger is not slight. It depends of the project profile.
> The round trips on the database for your alternative
> scheme would be terribly unscalable.
well, in example, we can fill checkboxes using an array:
<input value="foo[]" name="2">
<input value="foo[]" name="5">
<input value="foo[]" name="34">
and we have a table to store the array of every user:
user1 ---- selected_cb(2,5,34,173...)
user2------selected_cb(1,4,5,12...)
every user update his field at every pagination click.
There is not problem in this,
best regards,