Chapter7 _State_ Management (2)
Chapter7 _State_ Management (2)
I
(ASP.NET)
CHAPTER7. State Management
Login.aspx Login.aspx
Please enter your Please enter your
logon information: logon information:
First Name First Name
John John
Last Name Last Name
Chen Chen
Submit
Web Submit Web
Web Server
Server
Submit Web Server
Server Submit
Greetings.aspx Greetings.aspx
II forget
forget who
who you
you
are!!
are!!
INTRODUCING STATE MANAGEMENT
Any Hypertext Transfer Protocol
(HTTP)–based technology, Web Forms
are stateless, so each request from the
client browser to the web server is
understood as an independent request.
This means, they do not automatically
SESSION STATE
Session state is limited to the current browser
session:
Values are preserved through the use of application
and session variables
Scalability
An ASP.NET session is identified by the SessionID
string
Web
Web Server
Server
Client
Client Computer
Computer