File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 1818 $ returnTo = $ spBaseUrl .'/demo1/attrs.php ' ;
1919 $ auth ->login ($ returnTo );
2020} else if (isset ($ _GET ['slo ' ])) {
21- $ auth ->logout ();
21+ $ returnTo = null ;
22+ $ paramters = array ();
23+ $ nameId = null ;
24+ $ sessionIndex = null ;
25+ if (isset ($ _SESSION ['samlNameId ' ])) {
26+ $ nameId = $ _SESSION ['samlNameId ' ];
27+ }
28+ if (isset ($ _SESSION ['samlSessionIndex ' ])) {
29+ $ sessionIndex = $ _SESSION ['samlSessionIndex ' ];
30+ }
31+
32+ $ auth ->logout ($ returnTo , $ paramters , $ nameId , $ sessionIndex );
2233} else if (isset ($ _GET ['acs ' ])) {
2334 $ auth ->processResponse ();
2435
3445 }
3546
3647 $ _SESSION ['samlUserdata ' ] = $ auth ->getAttributes ();
48+ $ _SESSION ['samlNameId ' ] = $ auth ->getNameId ();
49+ $ _SESSION ['samlSessionIndex ' ] = $ auth ->getSessionIndex ();
3750 if (isset ($ _POST ['RelayState ' ]) && OneLogin_Saml2_Utils::getSelfURL () != $ _POST ['RelayState ' ]) {
3851 $ auth ->redirectTo ($ _POST ['RelayState ' ]);
3952 }
You can’t perform that action at this time.
0 commit comments