简体   繁体   English

HTTP和HTTPS PHP之间的不同会话ID

[英]Different session IDs between http and https php

In a PHP environment, is it possible to have different/independent sessions while using http and https? 在PHP环境中,使用http和https时是否可以有不同/独立的会话?

I want to use https on my site just for administration purposes, but, once the rest of the site is http, using https gets useless if I use both at the same time. 我只想出于管理目的而在自己的网站上使用https,但是一旦网站的其余部分为http,如果同时使用两者都无法使用https。

You can use different session cookie params based on URI. 您可以基于URI使用不同的会话Cookie参数。

session_set_cookie_params session_set_cookie_params

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM