statelessness can cause major issues with many sites and thus PHP has two tools for overcoming this issue. They are A) cookies B) Sessions
Added by Margarita L.
Step 1
Statelessness means that each request from a client to a server is treated as an independent transaction, with no knowledge of previous requests. This can lead to issues in maintaining user state, such as login status or user preferences. Show more…
Show all steps
Your feedback will help us improve your experience
Akash M and 66 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
The website www.widget.com requires users to supply a username and a password. This information is encoded into a cookie and sent back to the browser. Whenever the user connects to the web server, the cookie is sent. This means that the user only needs to supply a password at the beginning of the session. Whenever the server requests reauthentication, the client simply sends the cookie. The name of the cookie is "identif." Assume that the password is kept in the clear in the cookie. What should the settings of the secure and expires fields be, and why? Assume that the name and password are hashed and that the hash is stored in the cookie. What information must the server store to determine the username associated with the cookie? Is the cookie storing state or acting as an authentication token, or both? Justify your answer.
Akash M.
the legal, social and professional issues that may emerge from the use of cookies in a web application.
Chandra J.
How can cookies be a cause of concern with respect to privacy breaches? a) They may be used for user-tracking by storing special usage history data cookies. b) Third-party cookies are dangerous because they take the same information that regular cookies do, such as browsing habits and frequently visited websites, but then they generally share this information with external entities. c) User information stored in cookies can be stolen by hackers using attacking techniques like cross-site scripting. d) All of the above. e) None of the above.
Madhur L.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD