Home  >  Article  >  Backend Development  >  PHP removes the configuration method with PHPSESSID in the URL, urlphpsessid_PHP tutorial

PHP removes the configuration method with PHPSESSID in the URL, urlphpsessid_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:23:13868browse

php removes the configuration method with PHPSESSID in the URL, urlphpsessid

This situation mainly occurs under the Linux platform, mainly because of the session.use_trans_sid configuration problem in php.ini.

Set session.use_trans_sid = 1 in php.ini or turn on the –enable-trans-sid option when compiling to let PHP automatically pass the session id across pages, then the session id will be passed by &PHPSESSID. , this situation may bring a lot of trouble to PHP development and URL standardization. As long as session.use_trans_sid =0 is changed to this, it can be solved.

How to remove PHPSESSID from url? (PHP website)

1. Check whether the configuration you modified is the currently enabled configuration
2. Clear cookies

How to remove the redundant part of the URL address in php

$S=[URL string];
$A=explode('.html', $S);
$S=$A[0]; // This $S is [URL string] Removed the string after '.html'

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/840762.htmlTechArticlephp removes the configuration method with PHPSESSID in the URL. urlphpsessid This situation mainly occurs on the Linux platform Appears, mainly because of the session.use_trans_sid configuration in php.ini...
Statement:
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