如何限制我的用户名和密码 [英] how to restrict my username and password

查看:94
本文介绍了如何限制我的用户名和密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目,并且已将其放置在远程站点中.
我的问题是,如果某个机构正在使用用户名和密码访问该项目,那么其他人将无法使用相同的用户名和密码打开该项目,因为当前正在使用该用户名和密码.注销后,他们可以使用它.

请帮帮我.
谢谢.

I have a project and I have put it in remote site.
My problem is that if some body is accessing the project with a username and password then other can''t open that on the same username and password because it is currently in used. After logout they can use that.

Please help me.
thanks.

推荐答案

通过登录屏幕可以跟踪登录
注销通过3种方式进行跟踪
1.会话已过期,并退出由用户完成的点击
2.浏览器关闭.

因此,您维护了一个包含字段userid和Status的表.您必须将状态"A"保持为激活状态,将"D"状态保持为停用状态.

在按钮事件中,
1.检查用户标识状态,
login is track though login screen
logout is track by 3 way
1. session expired and sign off click which is done by user
2. browser close.

So you have maintain a table with fields userid and Status. You have to maintain the Status ''A'' for Activate and ''D'' for Deactivate.

In Button Event,
1.check the userid status ,
If(Status!=''A'')

,然后将表状态"更新为"A".
之后,仅重定向到主页.

2.如果注销,请再次将状态更新更改为"D".

在这里您会遇到很多问题.要获得帮助,请尝试以下链接.
帮助1
帮助2

then update the table "Status into ''A''.
Afterwards only redirect into main page.

2.If Logout, Again Change the Status update into ''D''.

Here u will face lot of problems.For Help Visit try below links.
Help 1
Help 2


hai
如果您已登录,则将数据库值设置为online ...如果其中任何一个试图登录您的用户名,请检查数据库条件.如果该数据库处于联机状态,则表示拒绝该数据库......
hai
set the database value to online if you are logged in...if any of them try to logged in your user name check the data base condition.if it is online means refused it...


这篇关于如何限制我的用户名和密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆