Session_register

From: Date: Fri, 20 Apr 2001 16:11:23 +0000
Subject: Session_register
Groups: php.general 
Request: Send a blank email to php-general+get-49577@lists.php.net to get a copy of this message
Is there a down side to registering a var with the session more than once? I.e. which would be preferred and why in a frequently accessed page in a web application: session_register('var'); or If (!session_is_registered('var') session_register('var'); FWIW - either way seems to work without any apparent issues. Seems the first way avoids a seemingly unnecessary conditional operation. Thanks... Al

« previous php.general (#49577) next »