Advanced Session Management with Active Server Pages - PowerPoint PPT Presentation

1 / 12
About This Presentation
Title:

Advanced Session Management with Active Server Pages

Description:

Advanced Session Management with Active Server Pages Charles Crystle Founder & Chief Technology Officer Chili!Soft What is a Session? HTTP is a – PowerPoint PPT presentation

Number of Views:184
Avg rating:3.0/5.0
Slides: 13
Provided by: Russ77
Category:

less

Transcript and Presenter's Notes

Title: Advanced Session Management with Active Server Pages


1
Advanced Session Management with Active Server
Pages
  • Charles Crystle
  • Founder Chief Technology Officer
  • Chili!Soft

2
What is a Session?
  • HTTP is a "stateless" protocol
  • Real-world applications need state
  • Session Object is an Active Server Page
    "intrinsic object"
  • Stores data or objects
  • Automatically times out and cleans up
  • Can be manipulated programmatically

3
How long do they last?
  • Session.Abandon
  • Session.Timeout
  • Cookie expiration (browser exit)

4
How Do Sessions Work?
  • Internal DB with a Session key
  • Session information held in an in-memory database
  • Cookie is set to hold the key
  • Each browser request contains the "key"

5
How Sessions Work
6
Where can this break down?
  • No cookies
  • Web farms
  • Fault recovery
  • Persistent sessions

7
Scaling Your Web Application
  • Vertical Scaling (bigger machines)
  • more memory
  • faster CPUs
  • more CPUs
  • other OS choices
  • Should not need any code changes

8
Scaling Your Web Application
  • Horizontal Scaling (more machines)
  • Hardware Routing
  • Sessions as usual
  • Return to same machine (user IP address)
  • Arrowpoint and F5 use cookie techniques
  • Session-less coding
  • Advanced Session Techniques

9
Session Save/Restore
  • Pack or unpack the Session data
  • Watch out for objects
  • Code Examples

10
Session Data in the Database
  • Web Farms
  • Fault Recovery
  • Persistent Sessions
  • Code Examples

11
Session Data as Form Data
  • Web Farms
  • No Cookies
  • Code Examples

12
Advanced Session Management with Active Server
Pages
  • Charles Crystle
  • Founder Chief Technology Officer
  • Chili!Soft
Write a Comment
User Comments (0)
About PowerShow.com