如何保持登录n注销状态 [英] how to maintain login n logoff status

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

问题描述

大家好,



如何维护登录n注销状态历史记录,

i有使用sql server 2008吗?



plzzzz建议我。



谢谢

解决方案

如果要将日志记录保存在数据库中,可以使用一个表,在该表中可以插入用户ID并在用户登录时记录日志。当用户注销时,使用注销时间更新相同的记录。 / blockquote>

在表格中添加另一个字段。布尔类型可以做。这将检查您的帐户是处于活动状态还是非活动状态1 =有效0 =无效。登录或注销时更改值。古德勒克

Hi guys,

how can i maintain login n logoff status history,
i have use sql server 2008?

plzzzz suggest me.

thanks

解决方案

If you want to keep the log in history in database, you can have a table where you could insert the user ID and log in time when the user logs in. When the user logs out, update the same record with log out time.


Add another field in your table. boolean type can do. that will check if your account is active or inactive. 1=active 0=inactive. change the value when you log in or log out. Goodluck


这篇关于如何保持登录n注销状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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