if rs.eof=false and rs("newusertype")="客户" then
session("username")=rs("newusername")
session("usertype")=rs("newusertype")
session("cncompany")=rs("cncompany")
session("num")=rs("num")
response.Redirect("kehufw.htm")
else if rs.eof=false and rs("newusertype")="操作" then
session("username")=rs("newusername")
session("usertype")=rs("newusertype")
session("cncompany")=rs("cncompany")
session("num")=rs("num")
response.Redirect("kun_bang_cz.htm")
else if rs.eof=false and rs("newusertype")="受理" then
session("username")=rs("newusername")
session("usertype")=rs("newusertype")
session("cncompany")=rs("cncompany")
session("num")=rs("num")
response.Redirect("kehusl.htm target='_self'")
else
session("username")=rs("newusername")
session("usertype")=rs("newusertype")
session("cncompany")=rs("cncompany")
session("num")=rs("num")
response.Redirect("kehufw.htm")
else if rs.eof=false and rs("newusertype")="操作" then
session("username")=rs("newusername")
session("usertype")=rs("newusertype")
session("cncompany")=rs("cncompany")
session("num")=rs("num")
response.Redirect("kun_bang_cz.htm")
else if rs.eof=false and rs("newusertype")="受理" then
session("username")=rs("newusername")
session("usertype")=rs("newusertype")
session("cncompany")=rs("cncompany")
session("num")=rs("num")
response.Redirect("kehusl.htm target='_self'")
else
你一台电脑肯定只能是一个SESSION啦
你那段程序是ASP的吧?另外补充一下:本来运行是没问题的,就这两天才出现这情况.跟服务器配置是否有关?
---------------------------------
每个客户端都只有一个SESSION对象ASP的东西来到 PHP栏 了;;;
菜单/文件/新建好像也是同一个session
存的一个SESSION SID.
这种,
如果一换用户名登陆,它就又改写了session("username")
所以不行。你要用不同的session名称才可以。
另也和session id有关。要看你的程序的设计。