英[neɪm] 美[nem]
n. Name; reputation; someone with the name of; famous person
vt. Determine; decide; name... ;Speak the name of...
adj. Famous; Name it accordingly
php session_name() function syntax
Function:Read/set session name
Syntax:string session_name ([string $name])
Parameters :
Parameter | Description |
session_name | Returns the current session name . If the name parameter is specified, the session_name() function updates the session name and returns the original session name. |
Description:name The session name used in cookies or URLs, for example: PHPSESSID. Only letters and numbers can be used as the session name. It is recommended that it be as short as possible and that it is a meaningful name (for users who have enabled cookie warnings, it is easier for them to determine whether to allow this cookie). If the name parameter is specified, the current session will also use the specified value as its name.
php session_name() function example
Output:
name
Output:
php中文网