August 1999
Intermediate to advanced
1488 pages
72h 53m
English
client.expiration(seconds)
The expiration() method of the client objects sets the number of seconds of user inactivity before the JavaScript runtime destroys all properties associated with that session. The default timeout is ten minutes if you do not explicitly set this property. Also, this method has no effect when using URL encoding to maintain your client objects.
Note
Setting this to 0 will remove any cookies associated with the client object when using client cookies to maintain sessions.
Listing 8.10 sets the destruction of the client object to occur after five minutes of inactivity.
<SERVER> // Set the expiration ... |
Read now
Unlock full access