Home >Backend Development >PHP Tutorial >PHP View the ID instance of the current Session_PHP tutorial
This article mainly introduces the method of viewing the ID of the current Session in php. The example analyzes two common techniques for obtaining the ID in the session. , very practical value, friends in need can refer to it
The example in this article describes how to view the ID of the current Session in PHP. Share it with everyone for your reference. The details are as follows:
There are two ways to get the user's session id. The first is to use the session_id() function, and the other is to use the built-in constant SID. SID contains the session id and session value
?
3 4 5
|
session_start(); |