where do you save your login/password? you can try the following:
1. add a DataTable or Hashtable to an Application variable
2. when the user tries to log in, check against the DataTable/Hashtable to see if the user is already there
a. if yes, reject the login
b. if no, allow the user to log in and add an entry to the DataTable/Hashtable
3. when the user logs out or the session times out (in Session_End), remove the entry from the DataTable/Hashtable
1. add a DataTable or Hashtable to an Application variable
2. when the user tries to log in, check against the DataTable/Hashtable to see if the user is already there
a. if yes, reject the login
b. if no, allow the user to log in and add an entry to the DataTable/Hashtable
3. when the user logs out or the session times out (in Session_End), remove the entry from the DataTable/Hashtable
我把在线会员放在数据库里的一张表中
如果IE强行关闭(如掉电、关机等而非logout),Session_End就不会正常执行,这个用户就不能重新登录,如果让服务器自动刷新在线列表,刷新周期又是个经验问题,且降低了性能,不知有无更好办法?
说的很清楚了,用session
如果是在局域网中公用一个IP上网怎么办??