PHP client Disable cookie how to use session
The first way: Add a phpsessid= on each of the hyperlinks $sid
Prevents the return of the initial page from generating a new session
if (Isset ($_get["Phpsessid")) {
session_id ($_get["PHPSESSID"]);
}
Start a session
Session_Start ();
Gets the session_id () of the current session
$sid =session_id ();
Add the parameter phpsessid= on each link $sid
Other pages are obtained in the following ways:
if (Isset ($_get["Phpsessid")) {
Set the current session to be the initial session,session_id () consistent
session_id ($_get["PHPSESSID"])
}
Session_Start ();
The second way: replace the phpsessid= $sid on the link with the SID constant (the value of the SID is similar: PHPSESSID=SDDG34R593DFDLKSREWR)
if (Isset ($_get["Phpsessid")) {
session_id ($_get["PHPSESSID"]);
}
Start a session
Session_Start ();
Other pages are obtained in the following ways:
if (Isset ($_get["Phpsessid")) {
Set the current session to be the initial session,session_id () consistent
session_id ($_get["PHPSESSID"])
}
Session_Start ();
The Third Way: Configure using Session.use_trans_sid=1,php.ini
This way the URL is automatically added to the SID (Href,location,action, note: JS Jump is not added on the SID)