Cho biết kểu Cookie được sử dụng bên dưới là kiểu nào? Response.Cookies("MyASPNETPage").("Username") = "Nang Vu" Response.Cookies("MyASPNETPage").("Password") = "TakeMeHome"
Trả lời:
Đáp án đúng: C
Đoạn mã `Response.Cookies("MyASPNETPage").("Username") = "Nang Vu"` và `Response.Cookies("MyASPNETPage").("Password") = "TakeMeHome"` cho thấy cookie "MyASPNETPage" chứa nhiều giá trị (Username và Password). Do đó, cookie này là đa dạng và đa giá trị. Cookie đa dạng (hay còn gọi là cookie từ điển) cho phép lưu trữ nhiều cặp tên-giá trị trong một cookie duy nhất. Mỗi cặp tên-giá trị này được truy cập thông qua tên của nó (ví dụ: Username, Password).





