developer155
Programmer
Hi I have a function that sets a cookie after a user action.
Basically what happens is a use views properties. I set a cookie whe a property is viewd (tracknum and propnum are property numbers). As you see, when user looks at next properrty, cookie will be overwritten with next property's numbers. I need to keep up to 10 property cookies. How can I do this? I will also need to go throught all the property cookies and check if a certain one exists. Here is what I have for setting a single cookie:
public void SetLeadCookie()
{
HttpCookie cookLead = new HttpCookie("lead");
cookLead["tracknum"] = myQsp.GetValByKey("tracknum");
cookLead["propnum"] = myQsp.GetValByKey("propnum");
Response.Cookies.Add(cookLead);
}
thanks for any help!
Basically what happens is a use views properties. I set a cookie whe a property is viewd (tracknum and propnum are property numbers). As you see, when user looks at next properrty, cookie will be overwritten with next property's numbers. I need to keep up to 10 property cookies. How can I do this? I will also need to go throught all the property cookies and check if a certain one exists. Here is what I have for setting a single cookie:
public void SetLeadCookie()
{
HttpCookie cookLead = new HttpCookie("lead");
cookLead["tracknum"] = myQsp.GetValByKey("tracknum");
cookLead["propnum"] = myQsp.GetValByKey("propnum");
Response.Cookies.Add(cookLead);
}
thanks for any help!