If, for a specific session, you want to set a timeout interval that is shorter than the default application timeout, you can also set the Timeout property of the Session object. A long session timeout period can result in too many open sessions, which can strain your server's memory resources. For example, if you expect that users browsing your Web application will linger on each page for only a few minutes, then you may want to significantly reduce the session timeout value from the default. Set this value according to the requirements of your Web application and the memory capacity of your server. You can change the default for an application by setting the Session.Timeout property on the Application Options property sheet in the Internet Information Services snap-in. See Using Components and Objects for more information about using the tag to instantiate an object.Ī session automatically ends if a user has not requested or refreshed a page in an application for a specified period of time. asp file in an application, and the application's Global.asa file uses the tag to instantiate an object with session scope. asp file in an application, and the Global.asa file for that application includes a Session_OnStart Event procedure.Ī user stores a value in the Session object.Ī new session automatically starts whenever the server receives a request that does not contain a valid SessionID cookie.Ī user requests an. A session can begin in one of the four following ways.Ī new user requests a URL that identifies an.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |