File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ public function read($session_id)
139139 $ jwt = new JwtWrapper ($ this ->serverName , $ this ->secretKey );
140140 $ data = $ jwt ->extractData ($ _COOKIE [self ::COOKIE_PREFIX . $ this ->suffix ]);
141141
142- return $ this -> serializeSessionData ( $ data ->data ) ;
142+ return $ data ->data ;
143143 }
144144 return '' ;
145145 } catch (\Exception $ ex ) {
@@ -168,7 +168,7 @@ public function read($session_id)
168168 public function write ($ session_id , $ session_data )
169169 {
170170 $ jwt = new JwtWrapper ($ this ->serverName , $ this ->secretKey );
171- $ data = $ jwt ->createJwtData ($ this -> unSerializeSessionData ( $ session_data) , $ this ->timeOutMinutes * 60 );
171+ $ data = $ jwt ->createJwtData ($ session_data , $ this ->timeOutMinutes * 60 );
172172 $ token = $ jwt ->generateToken ($ data );
173173
174174 if (!headers_sent ()) {
@@ -210,4 +210,4 @@ public function unSerializeSessionData($session_data)
210210
211211 return $ return_data ;
212212 }
213- }
213+ }
You can’t perform that action at this time.
0 commit comments