doupeizheng3918 2016-07-05 04:54
浏览 70

打开新标签会删除Chrome和Mozilla浏览器中的会话,但不会删除IE和Edge中的会话

I've a client code that set session with JavaScript and PHP, however beside logout or session timeout, there's no code calling function to remove session.

On page load(whichever page), it will check for session if no session, it will redirect to login page.

The problem now is in Mozilla or Chrome, after logged-in, when I open in new tab, it will redirect me to the login page, while open in same tab doesn't as session still remains.

However trying on IE and Edge browser, everything is fine.

I'm sorry I can't post clients code. So would just like to hear if anyone have similar issues that can share.

Thanks.

  • 写回答

1条回答 默认 最新

  • doujiushi9007 2016-07-05 05:47
    关注

    You will know what page you are on so set the session $mypage = $SERVER['REQUESTURI']; // this contains the query string also, you may have to get the values from the $_GET values $_SESSION[$mypage] = $myDocumentID;

    Then on entering the page (tab) Edit the document where $_SESSION[$mypage] == $mypage and you have the document id

    Something like that should work

    评论

报告相同问题?

悬赏问题

  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100