Hopes

Start Here..

 

if (Session.Count == 0)

if (Session.Count == 0)
{

sessionPath = Server.MapPath(".");
sessionPath = sessionPath + "//session.txt";
FileStream fp = new FileStream(sessionPath, FileMode.OpenOrCreate, FileAccess.Read);
StreamReader sr = new StreamReader(fp);
string strSession = sr.ReadLine();

while (strSession != null)
{
string sp = "!";
string[] sessionArray = strSession.Split(sp.ToCharArray());
string key = sessionArray[0].ToString();
Session[key] = sessionArray[1].ToString();
strSession = sr.ReadLine();

}
sr.Close();
pricount = pr.getpricount(this.Session["username"].ToString());

}

posted on 2012-09-18 18:36 ** 阅读(144) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航:
 

导航

统计

公告

你好!

常用链接

留言簿(2)

随笔档案

文章分类

文章档案

新闻档案

相册

收藏夹

C#学习

友情链接

搜索

最新评论

阅读排行榜

评论排行榜