The Session object
. We can use the Session object to store information needed for a particular user-session.
. Variables stored in the Session object are not removed when the user navigates from one page to another instead, these variables sustain for entire user session.
. The Web Server creates a Session object automatically when a request from an user made even though he do not have a session.
. The server destroys the Session object when the session expires or is abandoned.
. One common use for the Session object is to store user preferences. For example, if a user indicates that they prefer not to view graphics, you could store that information in the Session object.
Asked In: Many Interviews |