File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ To avoid this you have to create REDIS/MEMCACHED clusters.
2929But if you save the session into JWT Token you do not need to create a new server.
3030Just 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
3437The JWT Token cannot be changed, but it can be read.
Original file line number Diff line number Diff line change 11<?php
2- /**
3- * User: jg
4- * Date: 14/02/17
5- * Time: 12:52
6- */
72
83namespace ByJG \Session ;
94
Original file line number Diff line number Diff line change 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>
You can’t perform that action at this time.
0 commit comments