Skip to content

Commit

Permalink
Destroy session data after next request (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammadreza-73 committed Apr 25, 2023
1 parent e28d82f commit 0b3d76e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/index.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

use App\Core\Session;

session_start();

const BASE_PATH = __DIR__ . '/../';
Expand All @@ -9,3 +11,5 @@
require_once BASE_PATH . 'routes.php';

$router = (new App\Core\Http\Router)->run();

Session::unflash();

0 comments on commit 0b3d76e

Please sign in to comment.