Navigation Menu

Skip to content

Commit

Permalink
session write & close
Browse files Browse the repository at this point in the history
  • Loading branch information
Erwane authored and markstory committed Aug 28, 2018
1 parent 589100a commit c6fd3f2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Http/Session.php
Expand Up @@ -368,6 +368,20 @@ public function start()
return $this->_started;
}

/**
* Write datas and close the session
*
* @return bool True if session was started
*/
public function close()
{
if (!$this->_started) {
return true;
}

return session_write_close();
}

/**
* Determine if Session has already been started.
*
Expand Down

0 comments on commit c6fd3f2

Please sign in to comment.