记住用户名密码
Php代码
/** * 单点注销 */ public function logoutAllAction() { echo '正在注销...'; $callback_url = null; if(isset($_GET['callback_url'])){ $callback_url = $_GET['callback_url']; }else{ $callback_url = "index.php?m=member&c=index&a=login" ; } $go = "window.location.href='".$callback_url."'"; //注销IDP session session_destroy (); //删除cookie setcookie ( "uc_uid", '', time()-3600, '/' ); // 解析各sp端的注销URL $logout_urls = explode ( ',', $this->getConfig ()->sp_logout_url ); $img = ''; foreach ( $logout_urls as $key => $value ) { $img = $img . "<img src='" . trim ( $value )."'>"; } $msg = " <html> <head> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"> </head> <body onload=redirect()><div style='display:none'>" . $img . "</div> <script> //当前页面所有资源加载完成后执行 function redirect(){ " . $go . "; } </script> </body> </html>"; echo $msg; return false; }
目前有 0 条留言 其中:访客:0 条, 博主:0 条