ERR_TOO_MANY_REDIRECTS |
Hello,
I use codeigniter 3 and I'm trying to prevent an unregistered user from accessing any function of a controller. To do this in the contructor I check if the session variable "name" is defined and if it is not I do a "redirect" to the base_url(). If this variable is not defined I redirect with "redirect" to the base_url. But what I get is an error: "ERR_TOO_MANY_REDIRECTS". Code: class inicio extends CI_Controller My htaccess is: Code: #<IfModule mod_rewrite.c> Can you hel me? Thanks |
Messages In This Thread |
ERR_TOO_MANY_REDIRECTS - by davidblack - 09-16-2018, 02:09 AM
RE: ERR_TOO_MANY_REDIRECTS - by InsiteFX - 09-16-2018, 09:08 AM
RE: ERR_TOO_MANY_REDIRECTS - by davidblack - 09-16-2018, 10:04 AM
RE: ERR_TOO_MANY_REDIRECTS - by InsiteFX - 09-16-2018, 11:15 AM
RE: ERR_TOO_MANY_REDIRECTS - by davidblack - 09-16-2018, 04:11 PM
RE: ERR_TOO_MANY_REDIRECTS - by InsiteFX - 09-17-2018, 03:58 AM
|