cvs: pear /HTTP_Session Session.php

From: Date: Sat, 12 Nov 2005 14:34:55 +0000
Subject: cvs: pear /HTTP_Session Session.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-36237@lists.php.net to get a copy of this message
troehr Sat Nov 12 09:34:55 2005 EDT Modified files: /pear/HTTP_Session Session.php Log: added methods registered() and is_set() http://cvs.php.net/diff.php/pear/HTTP_Session/Session.php?r1=1.5&r2=1.6&ty=u Index: pear/HTTP_Session/Session.php diff -u pear/HTTP_Session/Session.php:1.5 pear/HTTP_Session/Session.php:1.6 --- pear/HTTP_Session/Session.php:1.5 Sun Sep 25 11:01:31 2005 +++ pear/HTTP_Session/Session.php Sat Nov 12 09:34:54 2005 @@ -27,7 +27,7 @@ * @author Torsten Roehr <torsten.roehr@gmx.de> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Session.php,v 1.5 2005/09/25 15:01:31 troehr Exp $ + * @version CVS: $Id: Session.php,v 1.6 2005/11/12 14:34:54 troehr Exp $ * @link http://pear.php.net/package/HTTP_Session * @since File available since Release 0.4.0 */ @@ -459,6 +459,18 @@ } /** + * Checks if a session variable is registered + * + * @static + * @access public + * @return bool + */ + function registered($name) + { + return session_is_registered($name); + } + + /** * Returns session variable * * @static @@ -495,6 +507,18 @@ } /** + * Checks if a session variable is set + * + * @static + * @access public + * @return bool + */ + function is_set($name) + { + return isset($_SESSION[$name]); + } + + /** * Returns local variable of a script * * Two scripts can have local variables with the same names

« previous php.pear.cvs (#36237) next »