Re: Why use sessions and not DB?
| From: | Michael Kimsal | Date: | Tue, 29 Aug 2000 22:34:51 +0000 |
| Subject: | Re: Why use sessions and not DB? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14259@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.
Jason Murray wrote:
> > I am arguing(not really) with one of my partners about the use of
> sessions. He
> > is new to web programming but has been programming other db related
> languages
> > for years. He wants to use the db to store certain information and I want
> to
> > use sessions.
>
> Why not store the session info in a database?
>
> Jason
> (setting cats amongst pigeons ;))
>
> --
> Jason Murray
> jasonm@melbourneit.com.au
> Web Design Team, Melbourne IT
> Don't believe everything you're foretold.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
==========================
Michael Kimsal
http://www.tapinternet.com
734-480-9961