如何检测xajax的过期会话,以便在发生过期时将用户重定向到登录页面,或者弹出一条消息让他们知道?
发布于 2014-05-29 23:31:34
查找会话超时的here
如果会话超时,请发送以下内容:
$response = new xajaxResponse();
$response->script('location.href="/login";'); // or what ever you want
return $response;
https://stackoverflow.com/questions/23923286
复制相似问题