- Type
- Quiz
- Course
- IT430 E-Commerce
- Size
- PDF 541 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 1, 2, 3 of 87. Download the file for all 87 pages.
Stateless HTTP requires scripts or back-end development to maintain state in ecommerce transactions. To link different clicks/steps, programmers can use options like Registration information, item selection, and Confirm Order. These methods help link and maintain state among these steps.
- Temporary File on Server:
- Create a temporary file on the server side.
- Code scripts behind each step (e.g., Register, Add to Cart, Confirm Order) to store information in the temporary file using a common ID.
- At the end, the Confirm Order script can retrieve the information from the temporary file and store it in a database using an insert query.
- Client-side Cookies:
- Use cookies to store information regarding Registration and Add to Cart steps on the client side. When the user reaches the Confirm Order step, the cookies containing relevant information can be sent back to the server and stored in a database against a common ID.
- Hidden Form Fields:
- Utilize hidden form fields within HTML forms to maintain state.
- For example, in the Add to Cart form, hidden fields can be used to store item names and codes/values.
- When the user selects items and presses Add to Cart, a script can open a new page with a " Confirm Order" button.
- In the new form, the item codes/values of the selected items can be present but hidden. When the user presses the " Confirm Order" button, a script can store the information of selected items in the database against the item codes/values present in the hidden form fields.
Example - Hidden Fields
<FORM NAME=" Form1">
<INPUT TYPE="CHECKBOX" NAME=" Check1"> Blue <INPUT TYPE="CHECKBOX" NAME=" Check2"> Green
<INPUT TYPE="CHECKBOX" NAME=" Check3"> White Silk Shirt.... <P> <INPUT TYPE="submit" NAME=" Go" VALUE=" Register!"> <INPUT TYPE="RESET" VALUE=" Reset!"> </FORM>
Another option is to keep everything in databases
- Store information from each step directly in appropriate database tables.
- Link the information using a common ID.
- This option requires more resources and time compared to other methods.
The main purpose here is to provide you with a broad concept of how state can be maintained in a stateless system.
Client server architecture
Client-server architecture refers to a model where the processing and distribution of tasks are divided between client devices and server systems. It can be categorized into different tiers based on where the processing of data occurs.
Related IT430 files
All IT430 files →- IT430 Highlighted Handouts Lectures 19-45 Set 2 by Mr Shahbaz Highlighted PDF 8.2 MB
- IT430 Final Term Quiz 4 July 2023 by Miss Mehwish Final term PDF 539 KB
- IT430 Quiz 2010 with References by Afaaq and Shani Bhai Quiz PDF 96 KB
- IT430 Short Notes Lectures 19-45 by Mr Shahbaz Quiz PDF 718 KB
- IT430 Quiz 1 Nov 2025 by Lucky Quiz PDF 685 KB
- IT430 Short Notes by Mr Shahbaz Quiz PDF 347 KB
Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.