Re: [PHP] PHP Session Handlers

2004-05-12 Thread John W. Holmes
From: Paul Higgins [EMAIL PROTECTED]

 I just read this tutorial:
 http://www.phpbuilder.com/columns/ying2602.php3

 I understand what each function does and what to do in each function.
 However, my question is this:  If I write my own session handling
functions,
 do I have to explicity call them myself?  If so, when do I call them?

No, you'll just use sessions as normal and these functions will be used by
PHP when needed. For instance, at the end of the script when PHP needs to
save the current session variables, it'll call your write() function. You
just use sessions as normal, though.

---John Holmes...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Session Handlers

2004-05-12 Thread Paul Higgins
Ok, thanks.

One other question.  If I use the example I cited earlier, are the session 
values still stored in a flat file?  Or do I have to replace that with 
database entries?

Thanks.


From: John W. Holmes [EMAIL PROTECTED]
Reply-To: John W. Holmes [EMAIL PROTECTED]
To: Paul Higgins 
[EMAIL PROTECTED],[EMAIL PROTECTED]
Subject: Re: [PHP] PHP Session Handlers
Date: Wed, 12 May 2004 15:14:36 -0400

From: Paul Higgins [EMAIL PROTECTED]

 I just read this tutorial:
 http://www.phpbuilder.com/columns/ying2602.php3

 I understand what each function does and what to do in each function.
 However, my question is this:  If I write my own session handling
functions,
 do I have to explicity call them myself?  If so, when do I call them?
No, you'll just use sessions as normal and these functions will be used by
PHP when needed. For instance, at the end of the script when PHP needs to
save the current session variables, it'll call your write() function. You
just use sessions as normal, though.
---John Holmes...

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
Getting married? Find tips, tools and the latest trends at MSN Life Events. 
http://lifeevents.msn.com/category.aspx?cid=married

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php