Jason Davidson wrote:
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??
No... that's simply a variable available to any script. Similar to any $_SERVER value if it's read only or a little different if it's read/write.
"stateless" means you can not tell who made one request from another. You simulate state by using cookies to tell who is making requests or IP addresses, sessions, etc, but these are are simulated state because the state-data is still coming from the client. If I can simulate the exact same request as you just made for a website (including cookies, IP, etc, which is possible), then as far as the web server is concerned, the requests came from the exact same person.
Oh, and <?php echo 'something to do with PHP, just in case Raditha Dissanayake is reading'; ?>
--
John Holmes
php|architect - The magazine for PHP professionals - http://www.phparch.com
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php