|
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 07:05 UTC Return to Bug #52982 | Download this patchThis patch is obsolete Obsoleted by patches: This patch renders other patches obsolete Obsolete patches: Patch Revisions:Developer: php.net@kenman.net
Index: 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(void)
+ 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-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 20:00:01 2025 UTC |