TAILIEUCHUNG - Professional Information Technology-Programming Book part 77

Tham khảo tài liệu 'professional information technology-programming book part 77', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Cookies Cookies are small pieces of information that are stored in your web browser. They typically contain data that is used to identify you when you look at a website so that site can be customized for each visitor. Rather than having to pass data to a script by using a form or as values in the query string cookies are sent back to your scripts automatically by your web browser. Even if you go off and browse to another website their values are remembered when you return. For example if you have to log in to access a particular website you may be able to let a cookie remember your username so you do not have to type it each time you go back in this case you only have to enter your password. Or on a community site your browser might record the date you last visited in a cookie so that any forum messages posted since you last visited can be highlighted as new. Cookie Ingredients Each cookie consists of a name and a value just like regular variables in PHP. The instruction to create a cookie in your web browser is sent as an HTTP header before a web page is transmitted when your web browser sees this header it takes the appropriate action. The HTTP headers that create cookies are the same regardless of whether they are generated by PHP or any other means of interfacing with your web server. The header used to set a cookie called email might look like this Set-Cookie email chris@ HTTP Headers You will never see an actual HTTP header in your web browser. We will look at how different types of HTTP headers are sent in PHP in Lesson 16 Communicating with the Web Server. A cookie also has an expiration date some cookies last only as long as your web browser is open and are kept in your computer s memory whereas others have a fixed expiration date in the future and are saved to your hard disk. The HTTP header to set the email cookie that will expire at the end of 2005 would look like this Set-Cookie email chris@ expires Sat 31-Dec-2005 23 59 59 .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.