NET Centric Computing · Unit 6
State Management and HTTP Protocol
Exam-focused notes for State Management and HTTP Protocol (NET Centric Computing, BIT351): what the TU syllabus asks and how it has actually been tested, with 5 solved past questions from this unit.
What this unit covers
- Stateless HTTP protocol
- Cookies definition and uses
- Hidden fields purpose and usage
- Session state management
- State management techniques
State management techniques
How do you manage state on stateless HTTP? [5]
HTTP is a stateless protocol -- each request-response cycle is independent. The server retains no memory of previous requests from the same client. However, real web applications (shopping carts, login sessions, etc.) require state to be maintained across m...
Full solved answer →Hidden fields purpose and usage
When do you need hidden field? Explain with an example. [5]
A hidden field is needed when you want to store and transmit data between web pages (client and server) without displaying it to the user on the browser screen. 1. Maintaining State Information - HTTP is stateless, so hidden fields help carry data (like use...
Full solved answer →Cookies definition and uses
Define cookies. What are the uses of hidden fields? [5]
--- A cookie is a small piece of text data that a web server sends to a client's browser, which the browser stores locally on the user's machine. When the browser makes subsequent requests to the same server, it automatically sends the stored cookie back, a...
Full solved answer →Why do we need cookies and hidden fields? Explain. [5]
Note: The following answer is based on standard web technology concepts, as no specific curriculum notes were available for this topic. --- HTTP (HyperText Transfer Protocol) is a stateless protocol, meaning each request-response cycle is independent. The s...
Full solved answer →Session state management
What is the use of session state? Discuss about single page application. [5]
Session state is a server-side mechanism used in web applications to store and maintain user-specific data across multiple HTTP requests during a user's visit (session) to a website. Since HTTP is a stateless protocol, session state is used to overcome this...
Full solved answer →Make Unit 6 stick
Practice BIT351 with flashcards & quizzes