Find answers, ask questions, and connect with our
community around the world.

Forums Forums Web Design CS50: Programming on the Web Project 2 (Chat) Concern

  • CS50: Programming on the Web Project 2 (Chat) Concern

    updated 3 years ago 0 Member · 1 Post
  • Maverick

    September 25, 2019 at 10:49 pm

    ​ Hi guys, to those who have done this project, please help me out. To those who have not, let me know what your experience says! Here are the requirements of the project: I have a concern about one of the requirements: “When a user visits your web application for the first time, they should be prompted to type in a display name that will eventually be associated with every message the user sends. If a user closes the page and returns to your app later, the display name should still be remembered.” I used local storage to store the inputted username of the client and sent a request to the server-side to update a global variable of the list of all taken usernames. In this way, a client cannot take a username of another client. However, this is my concern: what if a client deletes locale storage (by either actually deleting the storage folder and whatnot) and then goes to the site again. How would the server now know which username to delete from its global variable? This is the particular edge case that I am missing. Note that databases should not be used for this. Please help me out. Thank you in advance. – by hq overview ObesePlant – –

Viewing 1 of 1 replies
Reply to: Maverick
Your information:

Original Post
0 of 0 posts June 2018