Skip to content

Commit

Permalink
use setcookie (joomla#16481)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepereiradasilva authored and rdeutz committed Jun 15, 2017
1 parent 6790029 commit 02c1f2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/joomla/session/handler/joomla.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,11 @@ public function clear()
* In order to kill the session altogether, such as to log the user out, the session id
* must also be unset. If a cookie is used to propagate the session id (default behavior),
* then the session cookie must be deleted.
* We need to use setcookie here or we will get a warning in some session handlers (ex: files).
*/
if (isset($_COOKIE[$session_name]))
{
$this->input->cookie->set($session_name, '', 1);
setcookie($session_name, '', 1);
}

parent::clear();
Expand Down

0 comments on commit 02c1f2f

Please sign in to comment.