课程: Computer Science Principles: The Internet
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Remembering requests with cookies
- Each time you open the browser and open a web page, it is a unique request, as if you've never visited the website before. Many sites require that you log on to an account, or there might be some configuration settings or reminders that you have turned on or off with various websites. When you make a new request after you shut down the web browser, all those things the browser remembers are forgotten. The time that you're on a site is called a session. As you do things during that session, there are things you can do to configure the site. But when the browser is shut down, the session is over and the information is lost. Browser cookies aren't filled with chocolate chips, but they do remember the bits about your browser sessions to make it easier to work with various websites. For instance, if you're on a site and you decide to log in, the browser asks for your user name and password. When that is entered, the site tells the browser that it can save the user name as a cookie. Why…