Hi Jan,
I have started to make this webpart to work with sessions instead of cookies.
Below are the changes that I have made:
Original line:
string cookieValue = ValidationHelper.GetString(CookieHelper.GetValue(CookieName), "");
Changed it to:
string cookieValue = ValidationHelper.GetString(SessionHelper.GetValue(CookieName), "");
Original Line:
CookieHelper.SetValue(CookieName, e.CommandArgument.ToString(), DateTime.Now.AddYears(50));
Changed it to:
SessionHelper.SetValue(CookieName, e.CommandArgument.ToString());
You can find the full code on the below link:
http://demo.kudosweb.com/files/code.txt
Webpart has started to work with sessions now. But when I change the domain name it still cannot understand the value. For some reason, it is still behaving just like the cookie webpart.
Any ideas what am I doing wrong?
Thanks
Gitesh Shah