[英]How to rename PHPSESSID?
Wondering how I can change the php session id from PHPSESSID to something else so that it does not interfere with other PHP scripts running on the same domain. 想知道如何将php会话ID从PHPSESSID更改为其他内容,以便它不会干扰在同一域上运行的其他PHP脚本。 Is this possible?
这可能吗?
Thank you for your time 感谢您的时间
See this link for PHP runtime configuration . 有关PHP运行时配置,请参阅此链接。 The variable you are looking for is session.name .
您要查找的变量是session.name 。 You can also alter this programmatically by calling session_name before any call to session_start or session_register .
您还可以在调用session_start或session_register之前通过调用session_name以编程方式更改此设置。
session_name('mySessionName');
session_start();
Try looking at PHP's reference . 试着看看PHP的参考 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.