关于Session丢失的问题,急!!!!
在用户登录时给Session["userID"]赋值,然后跳到index.aspx页。
在index.aspx判断Session["userID"]的值是否为null。
在我的机器上是正常的,可是到用户那里以后
用
http://localhost/login.aspx
http://127.0.0.1/login.aspx
http://[IP地址]/login.aspx
都是正常的。
就是用http://[服务器名称]/login.aspx登录,在index.aspx判断Session["userID"]的值,此时的值为null。