RE: [PHP] Why use sessions and not DB?
| From: | Jason Murray | Date: | Tue, 29 Aug 2000 23:53:12 +0000 |
| Subject: | RE: [PHP] Why use sessions and not DB? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-14262@lists.php.net to get a copy of this message | ||
> Agreed. Storing session info into database will let you scale
> to multiple front end machines much easier. If that's even a
> remote possibility, you'd want to store info in a db.
>
> We've been gzcompressing large amounts of session data
> (large shopping carts) before writing to the database. Now instead of
> continually sending receiving 1-2k chunks across the wire between
> server and db, we send 300-400 bytes each time, which is helping
> speed things up.
Doesn't that increase the load on the webserver, though?
Jason