jon Tue Jan 23 21:50:51 2001 EDT
Modified files:
/phpdoc/en/functions session.xml
Log:
Add a note about the "write" handler being called _after_ the output stream
is closed. (User note: 10191)
Index: phpdoc/en/functions/session.xml
diff -u phpdoc/en/functions/session.xml:1.31 phpdoc/en/functions/session.xml:1.32
--- phpdoc/en/functions/session.xml:1.31 Mon Jan 22 18:03:35 2001
+++ phpdoc/en/functions/session.xml Tue Jan 23 21:50:50 2001
@@ -783,6 +783,15 @@
<function>session_set_save_handler</function> to take effect.
</para>
</note>
+ <note>
+ <para>
+ The "write" handler is not executed until after the the output
+ stream is closed. Thus, output from debugging statements in the
+ "write" handler will never be seen in the browser. If debugging
+ output is necessary, it is suggested that the debug output be
+ written to a file instead.
+ </para>
+ </note>
<para>
The following example provides file based session
storage similar to the PHP sessions default save handler