mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
[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:
parent
62be8e53d5
commit
f95e682b64
1 changed files with 8 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue