Skip to content

Commit

Permalink
doc: Added Session Middleware Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane committed Dec 10, 2024
1 parent 19837d9 commit 8feaf52
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions webfiori/framework/middleware/StartSessionMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,16 @@
use webfiori\framework\session\SessionsManager;
use webfiori\http\Request;
use webfiori\http\Response;

/**
* A middleware which is used to initialize sessions.
*/
class StartSessionMiddleware extends AbstractMiddleware {

/**
* Creates new instance of the class.
*
* By default, the middleware is part of the group 'web'.
* The priority of the middleware is PHP_INT_MAX.
*/
public function __construct() {
parent::__construct('start-session');
$this->setPriority(PHP_INT_MAX);
Expand Down

0 comments on commit 8feaf52

Please sign in to comment.