登录问题 [英] Login Question

查看:61
本文介绍了登录问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以解释我如何做到这一点,以便登录(用户名)

只能在可能的情况下登录一次网站。


我想要做的就是让dwaldman登录

登录不能再用另一个会话登录,直到旧的

会话终止(注销)

Can someone explain the how I can make it so that a login ( username )
can only be logged in once to a website if it is possible.

What I would like to do is have it so that if dwaldman is logged in
that login can''t login again with another session until the old
session is terminated ( logged out )

推荐答案

应该非常简单,在您的登录代码中添加一个检查功能,以验证用户会话是否处于活动状态

如果会话(isactive)< true则

''运行登录代码

session(" isactive")=如果

" Mangler" < we ******* @ repairresource.com写了留言新闻:dc ******************************* *** @ s50g2000 hsb.googlegroups.com ...
should be very simple to add a check function in your login code to verify the user session is active

if session("isactive") <true then
''run login code
session("isactive") = true
end if
"Mangler" <we*******@repairresource.comwrote in message news:dc**********************************@s50g2000 hsb.googlegroups.com...

有人可以解释我如何制作它以便登录(用户名)

只能在可能的情况下登录一次网站。


我想做的就是让dwaldman登录

登录无法再次登录,直到旧的

会话终止(已注销)
Can someone explain the how I can make it so that a login ( username )
can only be logged in once to a website if it is possible.

What I would like to do is have it so that if dwaldman is logged in
that login can''t login again with another session until the old
session is terminated ( logged out )



Jon Paal [MSMD]于2008年11月9日在

microsoft.public.inetserver.asp.general写道:
Jon Paal [MSMD] wrote on 09 jul 2008 in
microsoft.public.inetserver.asp.general:

"绞肉机" < we ******* @ repairresource.comWrote in message

news:dc *********************** *********** @ s50g2000 hsb.googlegroups.com。

..
"Mangler" <we*******@repairresource.comwrote in message
news:dc**********************************@s50g2000 hsb.googlegroups.com.
..

>有人可以解释我是如何做到这一点的,以便登录(用户名
)只能在网站上登录一次。

我想做的是让它如此如果dwaldman已登录
登录无法再次使用其他会话登录,直到旧的
会话终止(已注销)
>Can someone explain the how I can make it so that a login ( username
) can only be logged in once to a website if it is possible.

What I would like to do is have it so that if dwaldman is logged in
that login can''t login again with another session until the old
session is terminated ( logged out )



在您的登录代码中添加检查功能应该非常简单

验证用户会话是否有效


如果会话(isactive)<是真的然后

''运行登录代码

session(" isactive")= true

结束如果


should be very simple to add a check function in your login code to
verify the user session is active

if session("isactive") <true then
''run login code
session("isactive") = true
end if



这对OP无效:

登录一次到网站他写道,而不是会议。


你必须注册正在登录。在数据库上,

或在低容量网站上作为应用程序变量。


问题是你无法轻易检测到丢失的会话,
没有主动退出的


但由于浏览器或连接断电而超时或丢失。


所以你会有新的会话登录禁止进一步使用同一用户的旧的

会话登录,请联系。


怎么做?


-

Evertjan。

荷兰。

(请将x''es更改为我的电子邮件地址中的点数)

That would not help the OP:
"logged in once to a website" he writes, not to a session.

You would have to register the "being logged in" on the database,
or on a low volume site as an application variable.

The problem is you cannot easily detect a lost session,
that is not actively logged out,
but timed out or lost due to the browser or connection demize.

So you would have the new session login prohibit further use of the old
session login of the same user, methinks.

How to do that?

--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)


">我想做的就是让dwaldman登录
">What I would like to do is have it so that if dwaldman is logged in

>登录无法再次使用其他会话登录,直到旧的
会话终止(退出)
>that login can''t login again with another session until the old
session is terminated ( logged out )"



OP要求进行会话测试,丢失的会话与没有会话相同,所以是的,会话测试是有效的。


The OP asked for a session test, and a lost session is the same as no session, so yes, session tests are valid.



这篇关于登录问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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