位置: 编程技术 - 正文

PHP:session_unregister()的用法_Session函数

编辑:rootadmin
session_unregister

推荐整理分享PHP:session_unregister()的用法_Session函数,希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!

(PHP 4, PHP 5 < 5.4.0)

session_unregister — Unregister a global variable from the current session

说明 bool session_unregister ( string $name )

session_unregister() unregisters the global variable named name from the current session.

Warning

本函数已自 PHP 5.3.0 起废弃并将自PHP 5.4.0 起移除。

参数

name PHP:session_unregister()的用法_Session函数

The variable name.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE。

注释

Note:

If $_SESSION (or $HTTP_SESSION_VARS for PHP 4.0.6 or less) is used, use unset() to unregister a session variable. Do not unset() $_SESSION itself as this will disable the special function of the $_SESSION superglobal.

Caution

This function does not unset the corresponding global variable for name, it only prevents the variable from being saved as part of the session. You must call unset() to remove the corresponding global variable.

Caution

If you are using $_SESSION (or $HTTP_SESSION_VARS), do not use session_register(), session_is_registered() and session_unregister().

PHP:session_set_cookie_params()的用法_Session函数 session_set_cookie_params(PHP4,PHP5)session_set_cookie_params设置会话cookie参数说明voidsession_set_cookie_params(int$lifetime[,string$path[,string$domain[,bool$secure=false[,bool$httponly=fals

PHP:session_save_path()的用法_Session函数 session_save_path(PHP4,PHP5)session_save_path读取/设置当前会话的保存路径说明stringsession_save_path([string$path])session_save_path()返回当前会话的保存路径。参数path指定

PHP:session_register()的用法_Session函数 session_register(PHP4,PHP.4.0)session_registerRegisteroneormoreglobalvariableswiththecurrentsession说明boolsession_register(mixed$name[,mixed$...])session_register()acceptsavariablenumberofargumen

本文链接地址:https://www.jiuchutong.com/biancheng/279899.html 转载请保留说明!

上一篇:PHP:session_unset()的用法_Session函数

下一篇:PHP:session_set_cookie_params()的用法_Session函数

免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络