用户上次登录日期和时间 - 通知 [英] User last login date and time-Notifications

查看:82
本文介绍了用户上次登录日期和时间 - 通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在登录时显示用户上次登录日期和时间...

How to dispaly user last time login date and time when login...

推荐答案

如果您使用的是asp.net会员资格,则可以使用MembershipUser.LastLoginDate Property [ ^ ]

否则,您必须将用户的登录日期时间存储在数据库表列中。每当用户登录网站时,首先检索已存储的日期,即上次登录日期,并使用当前登录的日期时间更新它。然后,可以在标签控件中显示检索到的最后登录日期时间。
If you are using asp.net membership you can use MembershipUser.LastLoginDate Property[^]
Otherwise, you have to store the logged in date time of the user in a database table column. Whenever the user logs in to the website , first retrieve the already stored date, i.e. the last login date, and update it with the current logged in datetime. The retrieved last logged in date time can then be displayed in a label control.


这篇关于用户上次登录日期和时间 - 通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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