ASP ClassicLesson 35Free preview
ASP Session
This lesson is part of ASP · All levels
Summary
The session stores the dedicated data for a visitor on the server side while he or she browses the site. The browser only carries a Session ID in the form of a cookie, while the session content remains on the server so it is more secure than storing all the data on the client. Session objects are useful for login status, shopping cart content, or user preferences.
Key points
- The session is per visitor and is stored on the server.
- Session ID is carried by the browser through a cookie as a session marker.
- End the session by force.
- Session_OnStart and Session_OnEnd handle the beginning and end of the session at Global.asa.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.