Maintaining Application State MIS3502: Application Integration and Evaluation Paul Weinberg Presentation by David Schuff.

Slides:



Advertisements
Similar presentations
Servlets and a little bit of Web Services Russell Beale.
Advertisements

Introduction to Web Database Processing
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 1.
Introduction to Web Interface Technology (CSE2030)
Technologies for EC/EB Walt Scacchi FEMBA 290 Winter 2003.
Integration of Applications MIS3502: Application Integration and Evaluation Paul Weinberg Adapted from material by Arnold Kurtz, David.
XP Tutorial 9 New Perspectives on JavaScript, Comprehensive1 Working with Cookies Managing Data in a Web Site Using JavaScript Cookies.
ASP.NET 2.0 Chapter 6 Securing the ASP.NET Application.
Session Management A290/A590, Fall /25/2014.
1 The World Wide Web. 2  Web Fundamentals  Pages are defined by the Hypertext Markup Language (HTML) and contain text, graphics, audio, video and software.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
Cookies COEN 351 E-commerce Security. Client / Session Identification HTTP does not maintain state. State Information can be passed using: HTTP Headers.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College Lecture 8: WebForms — Web-based.
Overview of JSP Technology. The need of JSP With servlets, it is easy to – Read form data – Read HTTP request headers – Set HTTP status codes and response.
Chapter 9 Using Perl for CGI Programming. Computation is required to support sophisticated web applications Computation can be done by the server or the.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
CHAPTER 12 COOKIES AND SESSIONS. INTRO HTTP is a stateless technology Each page rendered by a browser is unrelated to other pages – even if they are from.
CSC 2720 Building Web Applications Cookies, URL-Rewriting, Hidden Fields and Session Management.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College
IT533 Lectures Session Management in ASP.NET. Session Tracking 2 Personalization Personalization makes it possible for e-businesses to communicate effectively.
1 Chapter 2 & Chapter 4 §Browsers. 2 Terms §Software §Program §Application.
JavaScript, Fourth Edition
Advanced Web Forms with Databases Programming Right from the Start with Visual Basic.NET 1/e 13.
Working with Cookies Managing Data in a Web Site Using JavaScript Cookies* *Check and comply with the current legislation regarding handling cookies.
Session 10: Managing State. Overview State Management Types of State Management Server-Side State Management Client-Side State Management The Global.asax.
State Management. What is State management Why State management ViewState QueryString Cookies.
CS453: State in Web Applications (Part 1) State in General Sessions (esp. in PHP) Prof. Tom Horton.
Chapter 8 Cookies And Security JavaScript, Third Edition.
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
1 Maryland ColdFusion User Group Session Management December 2001 Michael Schuler
Cookies Web Browser and Server use HTTP protocol to communicate and HTTP is a stateless protocol. But for a commercial website it is required to maintain.
Introduction to ASP.NET1. 2 Web applications in general Web applications are divided into two parts –The server part –The client part The server part.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Christopher M. Pascucci Basic Structural Concepts of.NET Managing State & Scope.
STATE MANAGEMENT.  Web Applications are based on stateless HTTP protocol which does not retain any information about user requests  The concept of state.
® IBM Software Group © 2007 IBM Corporation Best Practices for Session Management
Sessions in PHP – Page 1 of 13CSCI 2910 – Client/Server-Side Programming CSCI 2910 Client/Server-Side Programming Topic: Sessions in PHP Reading: Williams.
Web Database Programming Week 7 Session Management & Authentication.
Copyright © 2003 Pearson Education, Inc. Slide 7-1 The Web Wizard’s Guide to PHP by David Lash.
The Problem of State. We will look at… Sometimes web development is just plain weird! Internet / World Wide Web Aspects of their operation The role of.
Saving State on the WWW. The Issue  Connections on the WWW are stateless  Every time a link is followed is like the first time to the server — it has.
SE-2840 Dr. Mark L. Hornick1 Servlet Threads and Sessions.
CITA 310 Section 2 HTTP (Selected Topics from Textbook Chapter 6)
CSI 3125, Preliminaries, page 1 SERVLET. CSI 3125, Preliminaries, page 2 SERVLET A servlet is a server-side software program, Responds oriented other.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Fundamentals of Web DevelopmentRandy Connolly and Ricardo HoarFundamentals of Web DevelopmentRandy Connolly and Ricardo Hoar Fundamentals of Web DevelopmentRandy.
1 State and Session Management HTTP is a stateless protocol – it has no memory of prior connections and cannot distinguish one request from another. The.
Cloud Computing Computer Science Innovations, LLC.
Web Technologies Lecture 6 State preservation. Motivation How to keep user data while navigating on a website? – Authenticate only once – Store wish list.
Java Programming: Advanced Topics 1 Building Web Applications Chapter 13.
PostBack  When an initial request for a page (a Web Form) is received by ASP.NET, it locates and loads the requested Web Form (and if necessary compiles.
ASP.NET Part II Dr. Awad Khalil Computer Science Department AUC.
Role of MIS3502 MIS3502: Application Integration and Evaluation Paul Weinberg Presentation by David Schuff.
8-Mar-16 More About Servlets Session Tracking. Persistent information A server site typically needs to maintain two kinds of persistent (remembered) information:
1 Introducing Web Developer Tools Rapid application development tools ASP.NET-compatible web editors –Visual Studio.NET Professional Edition –Visual Studio.
ASP.NET State Management Overview Prepared By Manish Kumar Aery(IM66) Department of computer Application IET Bhaddal (Ropar)
111 State Management Beginning ASP.NET in C# and VB Chapter 4 Pages
Fundamentals of Web DevelopmentRandy Connolly and Ricardo HoarFundamentals of Web DevelopmentRandy Connolly and Ricardo Hoar Fundamentals of Web DevelopmentRandy.
Managing State Chapter 13.
19.10 Using Cookies A cookie is a piece of information that’s stored by a server in a text file on a client’s computer to maintain information about.
What is Cookie? Cookie is small information stored in text file on user’s hard drive by web server. This information is later used by web browser to retrieve.
Web Systems Development (CSC-215)
Session Tracking Techniques
ASP.NET 4.0 State Management Improvements – Deep Dive
Hyper Text Transfer Protocol
Building ASP.NET Applications
State Handling CS 4640 Programming Languages for Web Applications
State Handling CS 4640 Programming Languages for Web Applications
Presentation transcript:

Maintaining Application State MIS3502: Application Integration and Evaluation Paul Weinberg Presentation by David Schuff

The multi-page application? Actually, we’ve been creating multi-page applications all semester Access database: glenside.mdb …But the pages in our applications don’t communicate with each other, only with themselves (the postback), or an external data source (an Access database)

So? This has worked because we are completing the entire transaction within a single page Modification of a database record BUT If you need to gather data across multiple pages to complete a transaction, then this doesn’t work So you need a way to carry information across multiple pages

What is “state” Status of an application i.e., what are the values of the application’s variables The HTTP protocol is “stateless” One page doesn’t know what another page is doing So other things have to be done to get information from one page to another

Why is this tricky? Multiple amazon.com sessions… amazon.com application server Each session must be treated separately (i.e., different items in the shopping cart) This information has to be kept track of somewhere…

One option: Avoiding the issue (client-side) Post data from a form to a page This treats each page like a separate component Data has to be “handed off” from one component to another There are some odd ways this gets implemented Hidden HTML fields, complex URLs ASP.NET applications are set up to post data to themselves. This happens when we enable “AutoPostBack” in a DropDownList, or when a Button is clicked.

How to maintain state: Server-side The “session state” object ISAPI (Internet Server API) – Microsoft standard for doing this The application running at the server maintains the state for every connected session Communicates its state with the client

Session state object Goes away when the browser is closed Data is lost Is persistent across pages of the same browser session Can hold any data type =

How to maintain state: Client-side (cookie) The browser keeps track of data for other pages to “pick up” later Small text files saved to the local hard drive Does not go away when browser is closed (persistent) Can only hold string values Me like retaining values across multiple browser sessions!

When to use each? What situation would you want to use a session variable? What situation would you want to use a cookie? Is there one which you should avoid using?

Session Variables Server’s memory (RAM) State information about a session is maintained at the server Cookies Server’s memory (RAM) State information about a session is maintained at the browser Summary: Session Variables versus Cookies