[sessions] Added note about SessionHandler behaviour.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@323861 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Drak 2012-03-04 13:31:04 +00:00
parent 62be8e53d5
commit f95e682b64

View file

@ -133,6 +133,14 @@ session_start();
]]>
</programlisting>
</example>
<note>
<para>
Since this class' methods are designed to be called internally by PHP as part of the normal session workflow,
child class calls to parent methods (i.e. the actual internal native handlers) will return &false; unless
the session has actually been started (either automatically, or by explicit <function>session_start</function>.
This is important to consider when writing unit tests where the class methods might be invoked manually.
</para>
</note>
</section>
</partintro>