RE: [PHP] Session class ?
| From: | Boget, Chris | Date: | Mon, 08 Jan 2001 16:43:16 +0000 |
| Subject: | RE: [PHP] Session class ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-33250@lists.php.net to get a copy of this message | ||
> > What class is the best for sessions and mysql??
> > where can i find it?
> Here is one that I wrote that meets my needs. Your needs
> may vary, however. The class is pretty well commented
> and the session_mysql.php should be straight forward enough
> to understand. If you have any questions, please let me know.
Follow up:
This is what my session table looks like in mysql -
+--------------+------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------------+------------------+------+-----+---------+-------+
| session_name | varchar(32) | | MUL | | |
| expiration | int(11) unsigned | YES | | 0 | |
| stored_key | varchar(50) | | | | |
| stored_value | text | YES | | NULL | |
| site_name | varchar(25) | YES | | | |
+--------------+------------------+------+-----+---------+-------+
This table is used by different sites and so the reason for the field
"site_name". You can remove it as needed.
Chris