Home > Backend Development > PHP Tutorial > Introduction to PHP session processing related functions [Part 2]

Introduction to PHP session processing related functions [Part 2]

WBOY
Release: 2016-07-25 08:51:18
Original
908 people have browsed it

PHPProcessing session functions 6, session_encode
Function functions: sesssionInformation encoding
Function prototype: string session_encode(void);
Return value: string
Function description: The returned string contains the name and value of each variable in the global variable, in the form: a|s a is a variable The name s: 12 represents the value of the variable a"it is a testThe length is 12 Use semicolons between variables ” "" Function: sesssion Information decodingFunction prototype: boolean session_decode (string data)Return value: Boolean value
Function description: This function can
session
Information decoding, if successful, the logical value true is returned.
PHPProcessing session function8,
session_name Function: access the current session name
Function prototype:
boolean session_name(string [name]);Return value: string
Function description: This function can get or reset the name of the current session. If there is no parameter name, it means to get the name of the current session, and adding the parameter means setting the sessionname as the parameter name .
PHPProcessing session functions9session_id
Function function: access the current session Identification number
function prototype : boolean session_id(string [id]);
Return value: string
Function description: This function can get or reset the identity of the currently stored session Number. If there is no parameter id, it means that only the identification number of the current session is obtained. Adding the parameter means that the identification number of session is set to the newly specified id.
PHPHandling session functions 10, session_unset
Function function: Delete all Registered variables.
Function prototype: void session_unset (void)
Return value: Boolean value
Function description: This function is the same as Session_dest roy is different, it doesn’t End session. Just like using the function session_unregister to unregister all session variables one by one.
Receive LAMP Brothers’ original PHP tutorial CD/"Essential PHP in Detail" for free. For details, please contact the official website customer service: http://www.lampbrother.net
PHPCMSSecondary development http://yun.itxdl.cn/online/phpcms/index.php?u=5
WeChat development                                                                             =5
Mobile Internet Server Side Development http://yun.itxdl.cn/online/server/index.php?u=5
JavascriptCourse http: //yun.itxdl.cn/online/js/index.php?u=5CTOTraining Camp                                                                                         
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template