Home >Backend Development >PHP Tutorial >PHP removes the configuration method with PHPSESSID in the URL, urlphpsessid_PHP tutorial
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.
1. Check whether the configuration you modified is the currently enabled configuration
2. Clear cookies
$S=[URL string];
$A=explode('.html', $S);
$S=$A[0]; // This $S is [URL string] Removed the string after '.html'