HttpSessionState Where, How, Advantages?
Posted
by blgnklc
on Stack Overflow
See other posts from Stack Overflow
or by blgnklc
Published on 2010-06-17T12:49:02Z
Indexed on
2010/06/17
12:53 UTC
Read the original article
Hit count: 191
You see the code below, how I did use the session variable; So the three questions are; 1- Where are they stored? (Server or Client side) 2- Are they unique for each web page visitor? 3- Can I remove it using ajax or simple js code when my job is done with it? or it will be removed automatically..?
sbyte[][] arrImages = svc.getImagesForFields(new String[] { "CustomerName", "CustomerSurName" });
Dictionary<string, byte[]> smartImageData = new Dictionary<string, byte[]>();
int i = 0;
foreach (sbyte[] bytes in arrImages)
{
smartImageData.Add(fieldNames[i], ConvertToByte(bytes));
i++;
}
Session.Add("SmartImageData", smartImageData);
© Stack Overflow or respective owner