QA.TechInterviews.com - your tech questions answered
ASP Question?
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?
The code is Response.Cookies("[key]")("[item]")=[value]

where:

[key] is the key, or section of the cookie to write to
[item] is the item within the sub-section
[value] is the value you are writing

these values can be anything you want. In your example, MATLog is the subsection of the cookie and UserName, Name and Matrik and the item names being stored.

Basically you're just storing data for retrieval at some later point and/or somewhere else in your site code.
I dunno the answer to this.. but I just admire that you're a guru in ASP.. keep it up.
The code is Response.Cookies("[key]")("[item]")=[value]

where:

[key] is the key, or section of the cookie to write to
[item] is the item within the sub-section
[value] is the value you are writing

these values can be anything you want. In your example, MATLog is the subsection of the cookie and UserName, Name and Matrik and the item names being stored.

Basically you're just storing data for retrieval at some later point and/or somewhere else in your site code.

Back to QA. TechInterviews.com. Powered by Yahoo! Answers and TechInterviews.com community.