Re: DATABASE SESSION vs NON DB SESSION

From: Date: Fri, 13 Oct 2000 18:46:11 +0000
Subject: Re: DATABASE SESSION vs NON DB SESSION
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-20058@lists.php.net to get a copy of this message
On Fri, 13 Oct 2000, Michael Kimsal wrote: > Jingle Balls wrote: > > > I have been reading the posts and some articles about PHP sessions and I got > > myself confused (I know it happens a lot). However I am a bit perplexed over > > this. I hear a lot of people wanting to keep session information in a DB, > > doesnt PHP have a great server side storage of session variables? All you > > need to keep client side is a single cookie of the sessionid? > > > > If this is the case, why go the DB route? You can keep preferences and log > > info to the actual database, adn read those in when the user logs in and > > then keep them as session variables. > > > > This doesn't work in a multi-server environment - 5 web servers to > one database server, for example. Umm...perhaps I'm missing something here buy why wouldn't it work? If all the webservers access the same DB server then they all have access to the same session information. The only problems I can see is load on the DB server.. -- James Atkinson ----------------------------------------------------------------- James Atkinson 100world Technical Developer 512-1529 West 6th Avenue phone: +1-604-637-8122 Vancouver, BC, V6J 1R1 fax: +1-604-742-1770 Canada email: james.atkinson@100world.com http://www.100world.com +---------------------------------------------------------------+ | This message may contain confidential and/or privileged | | information. If you are not the addressee or authorized to | | receive this for the addressee, you must not use, copy, | | discolse or take any action based on this message or any | | information herein. If you have received this message in | | error, please advise the sender immediately by reply e-mail | | and delete this message. Thank you for you cooperation | +---------------------------------------------------------------+

« previous php.general (#20058) next »