Skip to content

Commit 550e2f8

Browse files
committed
Modify csrf
1 parent 23654c5 commit 550e2f8

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ composer dump-autoload
7373
composer app
7474
```
7575

76+
Start PHP server.
77+
78+
```bash
79+
composer start
80+
```
81+
7682
## Examples:
7783

7884
#### Basic route:

src/Router.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ class Router {
4646
public Request $request;
4747

4848
private function __construct() {
49+
// Start session.
50+
session_start();
51+
4952
// Define all http verbs.
5053
$this->allMethods = ['get', 'post', 'delete', 'put', 'patch'];
5154

0 commit comments

Comments
 (0)