RE: [PHP] Global persistent variables

From: Date: Tue, 10 Aug 2004 16:20:10 +0000
Subject: RE: [PHP] Global persistent variables
Groups: php.general 
Request: Send a blank email to php-general+get-193305@lists.php.net to get a copy of this message
[snip] Im not so sure asp is completely stateless is it. The application var will hold a var as long as the server is running, for any visitor. The var doesnt need to be set each page load either.. eg. Application("counter").. you can add to the counter on any page, by any visitor, at any time, and it will maintain that var untill your restart your server. This suggests some sort of state doesnt ot?? [/snip] It depends on how you define "state". The ASP book that I have here says that it is stateless. The value of a variable may be set and "held" for each user, but there is no persistent connection to the variable. This action is pretty much like sessions in PHP

« previous php.general (#193305) next »