简体   繁体   English

将视图更改为桌面网站时,移动Google Chrome浏览器会话被破坏

[英]session destroyed on mobile Google Chrome while changing view to desktop site

I am using Google Chrome on a mobile device. 我正在移动设备上使用Google Chrome。 When I change the mobile view to desktop view, the session is destroyed and it sends me to the login page of my website. 当我将移动视图更改为桌面视图时,会话被破坏,并将其发送到我网站的登录页面。

I am changing the view for my admin dashboard as some listing page is not showing properly in mobile view so I'd like to change to desktop view to be able to use the page properly. 我正在更改管理控制台的视图,因为某些列表页面无法在移动视图中正确显示,因此我想更改为桌面视图以能够正确使用该页面。

Does anyone have any idea on this? 有人对此有任何想法吗?

The browser is resetting session id on changing the view from mobile view to desktop or vice versa. 在将视图从移动视图更改为桌面视图时,浏览器正在重置会话ID,反之亦然。 To disable the resetting the session we have to disable the matching user agent. 要禁用重置会话,我们必须禁用匹配的用户代理。 I have disabled in the CodeIgniter by $config['sess_match_useragent'] = FALSE; 我已通过$config['sess_match_useragent'] = FALSE;在CodeIgniter中禁用$config['sess_match_useragent'] = FALSE;

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

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