sliverlight: use the IsolatedStorageSettings save user message or user settting

来源:互联网 发布:php开发婚介网页原码 编辑:程序博客网 时间:2024/05/22 10:44

.Backgorund 

 

I want to use session in sliverlight ,but it don't support session in sliverlight. 

I take a look other person articles ,they advise me to use the wcf handle the session.

If your data is not sensitive ,I advise use the IsolateStorageSetting  save the user Setting or user date.

 

Why don't save the sensitive data?

Because this data will save in local file, user can access this file ,so it isn't security.

 

 

for example:

 

 

IsolatedStorageSettings userSettings = IsolatedStorageSettings.ApplicationSettings;
//add user name
userSettings.Add("name", tbName.Text);
//get user name
userSettings["name"]
refer url:
http://msdn.microsoft.com/zh-cn/library/system.io.isolatedstorage.isolatedstoragesettings(VS.95).aspx

 

原创粉丝点击