Re: Re: Opinion: PHP Sessions or Cookies
| From: | Torsten Roehr | Date: | Wed, 14 Jul 2004 17:55:20 +0000 |
| Subject: | Re: Re: Opinion: PHP Sessions or Cookies | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190511@lists.php.net to get a copy of this message | ||
> > -----Original Message-----
> > have you tried storing your session data in a database? Storing session
> > data
> > in a database has some advances over the standard file based solution,
> > mainly data security und comfort. For example, if you want to get the
> > number
> > of the active sessions just do a simple "select count(*) from sessions".
>
> I'm not storing sessions into the database right now, but I have before
and
> I'll probably do it again =)
I'm doing it with the help of PEAR::DB and PEAR::HTTP_Session - really
simple! Are you interested in sample code?
Regards, Torsten