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 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看