File tree Expand file tree Collapse file tree
user_guide_src/source/libraries Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -353,12 +353,13 @@ destroy()
353353---------
354354
355355To clear the current session (for example, during a logout), you may
356- simply use either PHP's `session_destroy() <https://www.php.net/session_destroy >`_
357- function, or the library's ``destroy() `` method. Both will work in exactly the
358- same way:
356+ simply use the library's ``destroy() `` method:
359357
360358.. literalinclude :: sessions/037.php
361359
360+ This method will work in exactly the same way as PHP's
361+ `session_destroy() <https://www.php.net/session_destroy >`_ function.
362+
362363.. note :: This must be the last session-related operation that you do
363364 during the same request. All session data (including flashdata and
364365 tempdata) will be destroyed permanently and functions will be
Original file line number Diff line number Diff line change 11<?php
22
3- session_destroy ();
4- // or
53$ session ->destroy ();
You can’t perform that action at this time.
0 commit comments