August 1999
Intermediate to advanced
1488 pages
72h 53m
English
server.unlock()
The unlock() method of the server object unlocks the code that you have locked. This method returns true if the unlocking was successful and false if otherwise.
Listing 8.138 sets a server object with a counter property, totalHits. Because you only want to increment the counter with each new user request, it must be locked. Once the counter has been incremented, the project is unlocked.
<SERVER> // Lock the code and increment a server counter server.lock(); server.hitCount += 1; // Unlock the code server.unlock(); </SERVER> |
Read now
Unlock full access