Setting Secure cookies when HTTPS (for mixed HTTPS/HTTP site) with JRun/ColdFusion

我只是一个虾纸丫 提交于 2019-12-07 18:49:51

问题


We have a site running on CF7 that has both logged in and logged out sections, and uses jsessionid for sessions.

When switching to HTTPS (for the secure sections), we need to start a new secure session, setting the 'Secure' flag on the jsessionid cookie.

Whilst JRun has an option for setting 'Secure' it appears to be an all-or-nothing deal.

Is there a way to always use Secure when in HTTPS mode?


Related Question: Setting HttpOnly flag for all cookies.


回答1:


This explanation seems quite thorough. For some reason, it is not trivial.

12robots.com Making the JSESSIONID Session Token Cookie SECURE and HTTPOnly and settings its PATH



来源:https://stackoverflow.com/questions/1048439/setting-secure-cookies-when-https-for-mixed-https-http-site-with-jrun-coldfusi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!