Home > Backend Development > PHP Tutorial > frameset框架登录失效后,怎么重定向到登录页

frameset框架登录失效后,怎么重定向到登录页

WBOY
Release: 2016-06-13 12:10:04
Original
709 people have browsed it

frameset框架登录失效后,如何重定向到登录页
如题我用的yii框架,直接下面这样重定向,登录页面会显示在框架里边。
如何在登录失效后再访问页面,让整个页面重定向到登录页
$this->redirect(array('site/login'));
------解决思路----------------------
需要用 js

echo "<script>top.location = '/site/login'</script>";
Copy after login

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template