File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,9 @@ private function tick() : void{
179
179
foreach ($ this ->sessions as $ session ){
180
180
$ session ->update ($ time );
181
181
if ($ session ->isFullyDisconnected ()){
182
+ if ($ this ->getCookie () instanceof CookieCache) {
183
+ $ this ->getCookie ()->remove ($ session ->getAddress ());
184
+ }
182
185
$ this ->removeSessionInternal ($ session );
183
186
}
184
187
}
Original file line number Diff line number Diff line change @@ -46,6 +46,13 @@ public function add(InternetAddress $address) : int{
46
46
return $ cookie ;
47
47
}
48
48
49
+ public function remove (InternetAddress $ address ) : void {
50
+ $ addressStr = $ address ->toString ();
51
+ if (isset ($ this ->cookies [$ addressStr ])) {
52
+ unset($ this ->cookies [$ addressStr ]);
53
+ }
54
+ }
55
+
49
56
private function generate (InternetAddress $ address ) : int {
50
57
return random_int (0 , Limits::UINT32_MAX );
51
58
}
You can’t perform that action at this time.
0 commit comments