错误310(net :: ERR_TOO_MANY_REDIRECTS): [英] Error 310 (net::ERR_TOO_MANY_REDIRECTS):

查看:9687
本文介绍了错误310(net :: ERR_TOO_MANY_REDIRECTS):的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个错误是什么:

Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.

我使用PHP CodeIgniter和库 SimpleLoginSecure ,这是我的代码:

I use PHP CodeIgniter and library SimpleLoginSecure, this is my code:

if ($this->session->userdata('logged_in')) {
    redirect('admin/index');
}






错误?


How can I resolve this error?

回答

推荐答案

无限重定向循环:你被重定向到admin / index,这个相同的代码片段再次运行,重定向到admin / index ad infinitum。您可能想要添加一个检查到该代码段,只有做了重定向,如果你不在管理/索引页上。

I'm guessing you get an infinite redirect loop: you get redirected to admin/index, this same code snippet is run again, redirecting to admin/index ad infinitum. You probably want to add a check to that snippet and only do the redirect if you're NOT on the admin/index page.

这篇关于错误310(net :: ERR_TOO_MANY_REDIRECTS):的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆