Skip to content

Commit

Permalink
Remove session_register() references (#2746)
Browse files Browse the repository at this point in the history
Closes GH-2730
  • Loading branch information
theoboldalex authored Sep 8, 2023
1 parent fd332b0 commit ba6a83c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion language/oop5/serialization.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@

<para>
So if in the example above <varname>$a</varname> became part of a session
by running <literal>session_register("a")</literal>, you should include the
by adding a new key to the <varname>$_SESSION</varname> superglobal array, you should include the
file <literal>classa.inc</literal> on all of your pages, not only <filename>page1.php</filename>
and <filename>page2.php</filename>.
</para>
Expand Down
3 changes: 1 addition & 2 deletions reference/session/book.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@
<note>
<para>
Please note when working with sessions that a record of a session
is not created until a variable has been registered using the
<function>session_register</function> function or by adding a new
is not created until a variable has been registered by adding a new
key to the <varname>$_SESSION</varname> superglobal array. This
holds true regardless of if a session has been started using the
<function>session_start</function> function.
Expand Down

0 comments on commit ba6a83c

Please sign in to comment.