dongye1912 2015-01-05 19:57
浏览 434

Chrome浏览器Cookie /重定向问题

I am working on a web project and I am dealing with an issue I have never came across before and was hoping someone on here might be able to assist.

Original

My project utilizes cookies to store session/authentication information. This session handler is built in-house and not using PHP's core session handler.

When using a fresh install of Google Chrome (on up-to-date Windows 8.1), upon visiting the URL, I receive an Error 404 page. When I run this in Incognito Mode, it works properly.

On a couple occasions where I have gotten it to work in some way, refreshing the page or using the 'Back' button, then navigating further loses my cookies in Chrome and forces to login again, which brings me back to an Error 404 page.

Additionally, other browsers have been tested with (Firefox and IE 11) and it also works properly.

Lastly, I have had another person test this on their own machine through Chrome, and they achieve the same results (fails on normal tab, passes in Incognito mode).

I would be happy to show you guys the code if I was allowed to, but unfortunately rules above my own authority allow me too. Has anyone ever ran into a similar issue with Google Chrome?

I am open to any suggestions. There are no extensions installed at this point on Google Chrome.

Thank you for any help you can provide.

[EDIT] Update to Issue

I have managed to narrow this down to cURL returning cURL error (35): SSL connect error which causes my system to spit out an Error 404 page - but my issue extends beyond that considering this is only happening in Google Chrome in normal mode. How could this possibly effect PHP's cURL abilities, being that it is server-side and completely detached from the browser itself at this level?

I dug into my setting on Google Chrome, and found that "Predict network actions to improve page load performance" was enabled. Upon disabling this setting, I am no longer receiving this issue.

Can anyone elaborate why this enabled setting would be causing this issue in Google Chrome?

  • 写回答

1条回答 默认 最新

  • douren0558 2015-01-05 20:19
    关注

    we encountered something similar and found that our problem caused by using full URL links. Whenever we used full URL, the security kicks in and the cookies didn't stick for the another page. But when we switch using partial URL, the cookies stay and everything works correctly. But not sure if this would fix your problem.

    评论

报告相同问题?

悬赏问题

  • ¥15 乘性高斯噪声在深度学习网络中的应用
  • ¥15 运筹学排序问题中的在线排序
  • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
  • ¥30 求一段fortran代码用IVF编译运行的结果
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥30 python代码,帮调试,帮帮忙吧