Home > Backend Development > PHP Tutorial > php去掉URL网址中带有PHPSESSID的配置方法_PHP

php去掉URL网址中带有PHPSESSID的配置方法_PHP

WBOY
Release: 2016-06-01 11:52:10
Original
883 people have browsed it

这种情况主要是出现在Linux平台下才能出现,主要是因为php.ini中session.use_trans_sid 配置的问题。

设置php.ini中的session.use_trans_sid = 1或者编译时打开打开了–enable-trans-sid选项,让PHP自动跨页传递session id,那么session id就会通过&PHPSESSID的方式来进行传值了,这种情况可能会给PHP的开发及URL规范化带来不少麻烦,只要把session.use_trans_sid =0 改成这样,就能解决了。

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template