HTTP pages are removing my secure cookies

大憨熊 提交于 2019-12-04 17:35:55

Welp, that's embarassing. Here's what my problem turned out to be.

  • When the user tried to visit an HTTPS site from an HTTP one, their request would start as HTTP
  • I would check their login credentials (which would fail, because the secure cookie wasn't there), then redirect them to HTTPS. My "require login" and "require HTTPS" systems were separate (a bad design now, but it was convenient in the bad old days where the login cookie wasn't secure)
  • I thought my secure cookie was being deleted because the Chrome cookie browser doesn't show secure cookies when the page being shown is HTTP. The cookies were there all along.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!