Re: Database sessions and file sessions
| From: | Chris Shiflett | Date: | Tue, 09 Sep 2003 01:34:57 +0000 |
| Subject: | Re: Database sessions and file sessions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-162028@lists.php.net to get a copy of this message | ||
--- CDitty <mail@redhotsweeps.com> wrote:
> Can database sessions and file system sessions co-exist on the same
> server.
Sure, and it is trivial to do unless you are wanting to use the data from both
sessions with the same application, though that is still possible.
If you need to share data, you can just register your own session functions
using session_register() and share the data however you want. In fact, it would
be pretty easy to convert the sessions to use one way or the other in this
manner. You can read the session from both sources and store in whichever
source you are converting to.
Hope that helps.
Chris
=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/