简体   繁体   English

CodeIgniter登录不适用于平板电脑和手机

[英]CodeIgniter Login not working for Tablets and Phones

I have an Issue with tablets and phones logging into their accounts. 平板电脑和手机登录他们的帐户时出现问题。 Everything works fine on a desktop or laptop, It also works cross-browser(tested in Firefox, Chrome, Safari, and Internet Explorer.) However when I try to log on with a mobile device it does not work. 一切都可以在台式机或笔记本电脑上正常运行,也可以跨浏览器运行(在Firefox,Chrome,Safari和Internet Explorer中进行了测试。)但是,当我尝试使用移动设备登录时,它将无法正常工作。

Here is the Site: http://www.showtheapples.com/ 这是网站: http : //www.showtheapples.com/

Info: This is a practice website I am still learning CodeIgniter. 信息:这是一个练习网站,我仍在学习CodeIgniter。

My devices I am using: 我正在使用的设备:

HP Dell with Intel processor.(Working Fine) 具有Intel处理器的HP Dell。(工作正常)

Nokia Lumia 521 Windows Phone 8 (Internet Explorer for phones) 诺基亚Lumia 521 Windows Phone 8(电话的Internet Explorer)

LG Motion LG-MS770 (Android Default Browser) LG Motion LG-MS770(Android默认浏览器)

Lenovo IdeaTAB A-1000L Tablet (Android Default Browser) 联想IdeaTAB A-1000L平板电脑(Android默认浏览器)

Windows Surface RT (Internet Explorer for RT) Windows Surface RT(用于RT的Internet Explorer)

I was told that it is a session Issue so I have tried playing around with these already: 有人告诉我这是一个会话问题,因此我已经尝试使用以下方法:

 $config['sess_cookie_name']        = 'ci_session'; 
 $config['sess_expiration']      = 84200;
 $config['sess_expire_on_close']     = FALSE;
 $config['sess_encrypt_cookie']  = FALSE;
 $config['sess_use_database']       = FALSE;
 $config['sess_table_name']      = 'ci_sessions';
 $config['sess_match_ip']            = FALSE;
 $config['sess_match_useragent']    = FALSE;
 $config['sess_time_to_update']  = 300;

So far no Luck, The Users still however, get registered and are in the database, I have checked to see if they are actually there. 到目前为止,还没有运气,但是仍然注册了The Users并且已经在数据库中,我已经检查了他们是否确实在那里。 They just cannot log in on a mobile device. 他们只是无法登录移动设备。 Is there a fix for this? 有解决办法吗? So far on the internet I have found no fixes. 到目前为止,在互联网上我还没有找到修复方法。

I am Using CodeIgniter v 2.1.4 (Current Version) 我正在使用CodeIgniter v 2.1.4(当前版本)

Please If You guys can test this out with putting your email and a dummy password and find this issue. 请如果你们可以通过输入您的电子邮件和虚拟密码来进行测试,然后找到此问题。 There are no tricks on the website. 网站上没有任何技巧。 It simply asks you put in an email and create a password, you then recieve an email to activate your account. 它只是要求您输入电子邮件并创建密码,然后您会收到一封电子邮件以激活您的帐户。

If not and you can find the answer some other way it doesn't matter I will glady take it! 如果没有,您可以通过其他方式找到答案,没关系,我乐意接受! Thank you all in advance. 谢谢大家。

$config['sess_expiration']  =   6000;

The session expiration is too big (84200). 会话过期太大(84200)。 Replace 84200 with 6000 or less then check again. 将84200替换为6000以下,然后再次检查。

您可以通过将移动浏览器的Cookies设置更改为“允许”来解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM