php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch session.c.patch.txt for Session related Bug #52982Patch version 2010-10-04 02:46 UTC Return to Bug #52982 | Download this patchThis patch is obsolete Obsoleted by patches:
Developer: php.net@kenman.netIndex: C:/phpdev/svn/session.c =================================================================== --- C:/phpdev/svn/session.c (revision 1) +++ C:/phpdev/svn/session.c (revision 3) @@ -1733,6 +1733,17 @@ } /* }}} */ +/* {{{ proto bool session_is_active(bool) + Determine if a sesion is currently active. */ +static PHP_FUNCTION(session_is_active) +{ + if (PS(session_status) != php_session_active) { + RETURN_FALSE; + } + RETURN_TRUE; +} +/* }}} */ + /* {{{ proto bool session_regenerate_id([bool delete_old_session]) Update the current session id with a newly generated one. If delete_old_session is set to true, remove the old session. */ static PHP_FUNCTION(session_regenerate_id) @@ -2119,6 +2130,7 @@ PHP_FE(session_set_cookie_params, arginfo_session_set_cookie_params) PHP_FE(session_get_cookie_params, arginfo_session_void) PHP_FE(session_write_close, arginfo_session_void) + PHP_FE(session_is_active, arginfo_session_void) PHP_FALIAS(session_commit, session_write_close, arginfo_session_void) {NULL, NULL, NULL} }; |
Copyright © 2001-2024 The PHP Group All rights reserved. |
Last updated: Thu Nov 21 15:01:30 2024 UTC |