Ask a Question related to PHP Development, Design and Development.
-
Cditty #1
Database sessions and file sessions
Can database sessions and file system sessions co-exist on the same
server. I have 2 applications that use sessions. One uses the standard
php sessions and the other uses sessions that are stored in the
database. Neither of these can be changed.
Can anyone offer any advice on this?
Chris
Cditty Guest
-
database sessions persists after and </cfquery>
Quick question for all CF gurus. I 'm trying to alter user passwords in my db. To do this I call a stored proc that issues "Alter user" SQL. I... -
CGI::Sessions : Deleting expired sessions
Hi, I use CGI::Sessions to save the sessions into MySQL. The problem is, if the user just close the browser windows without logging off, I can't... -
Database state maintenance and incomplete sessions
This is a question with regards to using a database for maintaining state on a site. I'll use the Shopping Cart application from the ASPFAQ.com... -
best practice question regarding AspState database for sessions
Quick question regarding best practices for using the AspState database for storing session variables in .NET web applications. I know I need to... -
Chris Shiflett #2
Re: [PHP] Database sessions and file sessions
--- CDitty <mail@redhotsweeps.com> wrote:
Sure, and it is trivial to do unless you are wanting to use the data from both> Can database sessions and file system sessions co-exist on the same
> server.
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
[url]http://httphandbook.org/[/url]
Chris Shiflett Guest



Reply With Quote

