Skip to content

Commit

Permalink
Update Sessions.md
Browse files Browse the repository at this point in the history
  • Loading branch information
getpinga authored Mar 14, 2023
1 parent 66a72eb commit 17b301c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/Sessions.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Add in main start-xx-http.php file

```
```php
use App\PiSession;

$app['session'] = new PiSession();
Expand All @@ -11,7 +11,7 @@ $app['session']->start();

## Add in your controller

```
```php
use App\PiSession;

private $session;
Expand All @@ -23,7 +23,7 @@ public function __construct($app) {

then

```
```php
// set a session variable
$this->session->set('username', 'johndoe');

Expand Down

0 comments on commit 17b301c

Please sign in to comment.