0
protected void Login1_LoggedIn(object sender, EventArgs e)
{
{
User.SetUser(Login1.UserName // and what is user ID ?
以及如何在其他模块中检查用户是否已通过身份验证?如何检查用户授权时间和用户ID :)
protected void Login1_LoggedIn(object sender, EventArgs e)
{
{
User.SetUser(Login1.UserName // and what is user ID ?
以及如何在其他模块中检查用户是否已通过身份验证?如何检查用户授权时间和用户ID :)
要测试用户进行身份验证:
HttpContext.Current.User.Identity.IsAuthenticated
为了让自己的用户名,如果认证:
HttpContext.Current.User.Identity.Name
非常感谢你,但如何http://stackoverflow.com/questions/2363100/membership-how-to-set-userid-to-integer-s-and-not-encrypted ...我可以使用一些整数值作为ID? – Cynede 2010-03-02 12:41:13
你能解释一下'User'属于哪个库? – 2010-03-02 12:37:00