@@ -15,7 +15,7 @@ |
||
15 | 15 | </div> |
16 | 16 | |
17 | 17 | <div> |
18 | - <textarea cols="50" rows="20"><?php print_r($_SESSION);?> |
|
18 | + <textarea cols="50" rows="20"><?php print_r($_SESSION); ?> |
|
19 | 19 | </textarea> |
20 | 20 | </div> |
21 | 21 |
@@ -66,19 +66,19 @@ discard block |
||
66 | 66 | ], |
67 | 67 | [ |
68 | 68 | [ |
69 | - "text" => [ 1, 2, 3 ] |
|
69 | + "text" => [1, 2, 3] |
|
70 | 70 | ], |
71 | 71 | "text|a:3:{i:0;i:1;i:1;i:2;i:2;i:3;}" |
72 | 72 | ], |
73 | 73 | [ |
74 | 74 | [ |
75 | - "text" => [ "a" => 1, "b" => 2, "c" => 3 ] |
|
75 | + "text" => ["a" => 1, "b" => 2, "c" => 3] |
|
76 | 76 | ], |
77 | 77 | "text|a:3:{s:1:\"a\";i:1;s:1:\"b\";i:2;s:1:\"c\";i:3;}" |
78 | 78 | ], |
79 | 79 | [ |
80 | 80 | [ |
81 | - "text" => [ "a" => 1, "b" => 2, "c" => 3 ], |
|
81 | + "text" => ["a" => 1, "b" => 2, "c" => 3], |
|
82 | 82 | "single" => 2000 |
83 | 83 | ], |
84 | 84 | "text|a:3:{s:1:\"a\";i:1;s:1:\"b\";i:2;s:1:\"c\";i:3;}single|i:2000;" |
@@ -91,13 +91,13 @@ discard block |
||
91 | 91 | ], |
92 | 92 | [ |
93 | 93 | [ |
94 | - "text" => [ "a" => $obj ] |
|
94 | + "text" => ["a" => $obj] |
|
95 | 95 | ], |
96 | 96 | "text|a:1:{s:1:\"a\";O:8:\"stdClass\":2:{s:5:\"prop1\";s:6:\"value1\";s:5:\"prop2\";s:6:\"value2\";}}" |
97 | 97 | ], |
98 | 98 | [ |
99 | 99 | [ |
100 | - "text" => [ $obj ] |
|
100 | + "text" => [$obj] |
|
101 | 101 | ], |
102 | 102 | "text|a:1:{i:0;O:8:\"stdClass\":2:{s:5:\"prop1\";s:6:\"value1\";s:5:\"prop2\";s:6:\"value2\";}}" |
103 | 103 | ] |
@@ -24,8 +24,8 @@ |
||
24 | 24 | /** |
25 | 25 | * JwtSession constructor. |
26 | 26 | * |
27 | - * @param $serverName |
|
28 | - * @param $secretKey |
|
27 | + * @param string $serverName |
|
28 | + * @param string $secretKey |
|
29 | 29 | * @param int $timeOutMinutes |
30 | 30 | */ |
31 | 31 | public function __construct($serverName, $secretKey, $timeOutMinutes = null, $sessionContext = null, $cookieDomain = null, $path = "/") |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | setcookie( |
89 | 89 | self::COOKIE_PREFIX . $this->suffix, |
90 | 90 | null, |
91 | - (time()-3000), |
|
91 | + (time() - 3000), |
|
92 | 92 | $this->path, |
93 | 93 | $this->cookieDomain |
94 | 94 | ); |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | setcookie( |
189 | 189 | self::COOKIE_PREFIX . $this->suffix, |
190 | 190 | $token, |
191 | - (time()+$this->timeOutMinutes*60) , |
|
191 | + (time() + $this->timeOutMinutes * 60), |
|
192 | 192 | $this->path, |
193 | 193 | $this->cookieDomain, |
194 | 194 | false, |