Posts

Showing posts from November, 2023

Cookie (Part II)

Image
The basic definition of Cookie is  here . Now, let us dive deep into this topic with everyday life. You have a house named "Happy Home" which is 1000 square feet in size and you have a main door key that is a number lock system. You know the PIN to open your house's main door and the PIN has to be changed periodically. Suppose, today is Nov 2, 2023, and the PIN has to be changed on 1st of Jan, 2024.  Now, you will have three different scenarios. 1) Each room has a separate PIN that includes the main door. Once you open the door, you can access only the living room, and the rest of the rooms are locked and cannot open because you don't know the PIN (to access). 2) The living room and the master bedroom have the same PIN. Once you open the door, you can access the living room and your master bedroom (locked earlier) using the same PIN.  3) The main door has a number lock. The rest of the room doors are already open and have no lock system. In this case, if you open the