Re: DB vs TEXT file for sessions WAS: RE: [PHP] Why use sessions and not DB?
| From: | Thomas Deliduka | Date: | Wed, 30 Aug 2000 16:10:21 +0000 |
| Subject: | Re: DB vs TEXT file for sessions WAS: RE: [PHP] Why use sessions and not DB? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14420@lists.php.net to get a copy of this message | ||
My only take on this is that I tried unsuccessfully for weeks to get
Sessions to work for me. It was a simple login script and such and I wanted
sessions to be handled over time.
I went back and forth with the Dev team and people on this list (if you
remember). Each time I posted the form a new session was created and the
variables never registered. It finally came down to (from the developers)
that Sessions will not work with a form POST only GET. And since it was
password information being sent I had to change my whole structure over to
use a Database.
Didn't take long and now I have a fully working session that is great.
On 8/30/00 12:02 PM this was written:
> I noted with interest:
>
> Mark Maggelet <maggelet@mminternet.com> wrote:
>
>> Maybe, but the performance difference you'll see now will depend on
>> your database or filesystem. I know Mysql isn't especially good at
>> doing lots of inserts and updates, while a reiserFS is especially
>> good with dealing with lots of small files.
>>
>> it just depends on too many things to say one thing is definitely
>> better. If it were me though, I'd go with the filesystem because I've
>> had too many hassles with a table locking up on me and bringing down
>> my whole site.
>>
>> - Mark
>
>
> So PHP4 uses a text file by default? PHPLib uses MySQL by default, (if
> you
> have it of course)
> Is there a class for management of the text file that is generated by
> either
> PHPLib or PHP4 for session storage? I would think that the text file
> would be
> more universal between platforms, and if a ramdisk were used, or some
> sort
> of caching/virtualizing of the file so most current parts of it are in
> dedicated memory, it would be faster than the database, and avoid
> the lock up problem.
--
Thomas Deliduka
IT Manager
-------------------------
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/