WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

ASP Session Object


A Session object stores data about, or change settings for a client session.


Session Object

When you are working with an application on your PC, you open it, do a few changes and afterward you close it. This is much similar to a Session. The PC knows your identity. It knows when you open the application and when you close it. Be that as it may, on the web there is one issue: the web server does not know your identity and what you do, on the grounds that the HTTP address doesn't look after state.

ASP takes care of this issue by making a one of a kind treat for every client. The treat is sent to the client's PC and it contains data that distinguishes the client. This interface is known as the Session object.

The Session object stores data about, or change settings for a client session.

Variables put away in a Session object hold data around one single client, and are accessible to all pages in a single application. Basic data put away in session factors are name, id, and inclinations. The server makes another Session object for each new client, and wrecks the Session object when the session lapses.

The Session article's accumulations, properties, techniques, and occasions are depicted below:

Collections

Collection Description
Contents Contains every one of the things attached to the session through a content command
StaticObjects Contains every one of the items attached to the session with the HTML <object> tag

Properties

Property Description
CodePage Specifies the character set that will be utilized when showing dynamic content
LCID Sets or returns a whole number that determines an area or locale. Substance like date, time, and money will be shown agreeing to that area or region
SessionID Returns an extraordinary id for every client. The one of a kind id is produced by the server
Timeout Sets or returns the timeout period (in minutes) for the Session object in this application

Methods

Method Description
Abandon Destroys a client session
Contents.Remove Deletes a thing from the Contents collection
Contents.RemoveAll() Deletes all things from the Contents collection

Events

Event Description
Session_OnEnd Occurs when a session ends
Session_OnStart Occurs when a session begins

A Session object stores data about, or change settings for a client session.


Session Object

When you are working with an application on your PC, you open it, do a few changes and afterward you close it. This is much similar to a Session. The PC knows your identity. It knows when you open the application and when you close it. Be that as it may, on the web there is one issue: the web server does not know your identity and what you do, on the grounds that the HTTP address doesn't look after state.

ASP takes care of this issue by making a one of a kind treat for every client. The treat is sent to the client's PC and it contains data that distinguishes the client. This interface is known as the Session object.

The Session object stores data about, or change settings for a client session.

Variables put away in a Session object hold data around one single client, and are accessible to all pages in a single application. Basic data put away in session factors are name, id, and inclinations. The server makes another Session object for each new client, and wrecks the Session object when the session lapses.

The Session article's accumulations, properties, techniques, and occasions are depicted below:

Collections

Collection Description
Contents Contains every one of the things attached to the session through a content command
StaticObjects Contains every one of the items attached to the session with the HTML <object> tag

Properties

Property Description
CodePage Specifies the character set that will be utilized when showing dynamic content
LCID Sets or returns a whole number that determines an area or locale. Substance like date, time, and money will be shown agreeing to that area or region
SessionID Returns an extraordinary id for every client. The one of a kind id is produced by the server
Timeout Sets or returns the timeout period (in minutes) for the Session object in this application

Methods

Method Description
Abandon Destroys a client session
Contents.Remove Deletes a thing from the Contents collection
Contents.RemoveAll() Deletes all things from the Contents collection

Events

Event Description
Session_OnEnd Occurs when a session ends
Session_OnStart Occurs when a session begins