登录后获取用户ID [英] obtain userid after login

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

问题描述

我使用表单"身份验证模式登录.以下是web.config文件中的代码

I used "forms" authentication mode for login.following are the codes in web.config file

<authentication mode="Forms">
            <forms loginUrl="login.aspx" cookieless="UseUri" protection="All" timeout="90"></forms>
        </authentication>


我想从其他页面登录后重新获取用户ID.


I want to reteieve the userid after user login from other pages.
how to do that?

推荐答案

Wanlambok写道:
Wanlambok wrote:

我想收看用户从其他页面登录后的用户ID.

I want to reteieve the userid after user login from other pages.



我想将其存储在会话中.您的login.aspx似乎是执行此操作的地方.



Store it in the session, I guess. Your login.aspx seems the place to do that.


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

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