Skip to content

Commit 50ceef2

Browse files
committed
Minor changes in documentation and fix a notice in the example.
1 parent 1523868 commit 50ceef2

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ To avoid this you have to create REDIS/MEMCACHED clusters.
2929
But if you save the session into JWT Token you do not need to create a new server.
3030
Just to use.
3131

32+
You can read more in this Codementor's article:
33+
[Using JSON Web Token (JWT) as a PHP Session](https://www.codementor.io/byjg/using-json-web-token-jwt-as-a-php-session-axeuqbg1m)
34+
3235
## Security Information
3336

3437
The JWT Token cannot be changed, but it can be read.

src/JwtSession.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
<?php
2-
/**
3-
* User: jg
4-
* Date: 14/02/17
5-
* Time: 12:52
6-
*/
72

83
namespace ByJG\Session;
94

webtest/index.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
$handler->replaceSessionHandler(true);
88
} else {
99
echo "<H1>JWT Session is disabled</H1>";
10+
session_start();
1011
}
1112

12-
session_start();
13-
1413
?>
1514

1615
<h1>JwtSession Demo</h1>

0 commit comments

Comments
 (0)