Home » questions » ASP Question? Response.Cookies ("MATLog")("UserName")?

ASP Question? Response.Cookies ("MATLog")("UserName")?

2006-08-04 05:00:43, Category: Programming & Design
I'm studing a code thats in ASP, there is something like this: Response.Cookies ("MATLog")("UserName") = objRec("userID") Response.Cookies ("MATLog")("Name") = objRec("userName") Response.Cookies ("MATLog")("Matrik")= objRec ("studentNo") ----------------------------- I know that thats about cookies,but i dont know what are MATlog and Matrik for?and if they are somehow playing the role of variable or identifier for cookies(?)then what are they stand for? what are these lines doing?

Answers

  1. Kryzchek

    On 2006-08-04 07:58:15


    MATLog is the name of the cookie, and "Username", "Name" and "Matrik" are the names of keys within the cookie. It looks like this code is just saving user data to a cookie to persist it throughout a session.