开发者

codeigniter site wont login on different computers

开发者 https://www.devze.com 2023-03-30 19:49 出处:网络
I have a basic site I made for practice purposes and have built a login/member type functionality with it. The weird thing is that when I try to login开发者_JS百科 on different computers, some will lo

I have a basic site I made for practice purposes and have built a login/member type functionality with it. The weird thing is that when I try to login开发者_JS百科 on different computers, some will login in properly while others will just redirect me and not log me in although my credentials are good. I am thinking maybe it is different security settings in the browsers for storing sessions, cookies? But all the browsers I tested on have cookies enabled but the site and login feature will only work for some. Any suggestions?


I had the same problem once and it was caused by the browser. If you redirect the user after login with

redirect(url); 

try to replace that with

redirect(url, 'refresh');

IE doesn't play well with cookies and header redirects.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号