I tried to autoload session on codeigniter then i got this redirect loop error
$autoload['libraries'] = array('database','session');
this is the only code i added on the autoload file
So i finally find the problem on this its you have to disable or enable mod_security under your server depending on your requirements needed