PHP processes session functions 6 and session_encode Function: sesssion information encoding Function prototype: string session_encode (void ); Return value: string Function description: the returned string contains the names and values of each variable in the global variable, in the form of a | s: 12: "it is a test"; c | s: 4: "lala"; a is the variable name s: 12 represents the value of variable a. "The length of it is a test is 12 variables separated by semicolons. PHP processes session functions 7 and session_decode Function: decodes sesssion information. Function prototype: boolean session_decode (string data) Return value: Boolean Function description: This function decodes session information. if the session information is successful, the logical value true is returned. PHP processes session functions 8 and session_name Function: Access the current session name. Function prototype: boolean session_name (string [name]); Return value: string Function description: This function can obtain or reset the name of the current session. If the parameter name is not set, the current session name is obtained. if the parameter is added, the session name is set to the parameter name. PHP processes session functions 9 and session_id Function: Access the ID of the current session. Function prototype: boolean session_id (string [id]); Return value: string Function description: This function can obtain or reset the ID number of the currently stored session. If there is no parameter id, only the id of the current session is obtained. if the parameter is added, the id of the session is set to the newly specified id. PHP processes session functions 10 and session_unset Function: delete all registered variables. Function prototype: void session_unset (void) Return value: Boolean Function description: Unlike Session_destroy, this function does not end a session. Just like using the session_unregister function to cancel all session variables one by one. Get free LAMP Brothers original php Tutorial CD/the elaborate PHP Essentials edition, details consulting official website Customer Service: http://www.lampbrother.net PHPCMS secondary development http://yun.itxdl.cn/online/phpcms/index.php? U = 5 Develop http://yun.itxdl.cn/online/weixin/index.php? U = 5 Mobile internet server development http://yun.itxdl.cn/online/server/index.php? U = 5 Javascript http://yun.itxdl.cn/online/js/index.php course? U = 5 CTO training camp http://yun.itxdl.cn/online/cto/index.php? U = 5
|