查帮助:
Parameters
userName
Name of the user for cookie authentication purposes. This does not need to map to an account name and will be used by URL Authorization.
createPersistentCookie
Specifies whether or not a durable cookie (one that is saved across browser sessions) should be issued.
Res
Redirects, based on the contents of the URL key in the query string, or redirects to Default.aspx if the return key does not exist. It issues an authentication ticket and does a SetForms with the ticket, using the appropriately configured cookie name for the application as part of the redirect response.大意是说,它会使用username参数写一个cookie。再访问其他页面时,就使用此cookie中的值代表当前登录的用户。
Parameters
userName
Name of the user for cookie authentication purposes. This does not need to map to an account name and will be used by URL Authorization.
createPersistentCookie
Specifies whether or not a durable cookie (one that is saved across browser sessions) should be issued.
Res
Redirects, based on the contents of the URL key in the query string, or redirects to Default.aspx if the return key does not exist. It issues an authentication ticket and does a SetForms with the ticket, using the appropriately configured cookie name for the application as part of the redirect response.大意是说,它会使用username参数写一个cookie。再访问其他页面时,就使用此cookie中的值代表当前登录的用户。
解决方案 »
- 各位神人来帮帮忙啊
- asp.net项目关闭串口问题请教
- 救命啊,我用火狐打开localhost没反应
- 用window.open打开新页面,往数据库添加数据后,关闭窗口,并刷新父页面中的数据
- 用ASP.NET改别人用ASP做的网站!可以实现吗?高手帮忙!
- 水晶报表导出EXCEL列位置发生变化的问题.
- 创建RadioButtonlist,怎么写???
- 请教如何获得某行某列的值?
- 请问,如何在UserControl的按钮点击事件中,调用.aspx页面(包含此用户控件)中的Public void()?在线等待,马上给分
- 求救:未将对象引用设置到对象的实例。
- 1000分求一小程序用于学习(希望版住给予支持)。
- 奇怪的问题,不能应用css样式表?
如果在登录页面调用了FormsAuthentication.RedirectFromLoginPage("aaa",false);
那么在其它页面怎样才能取出"aaa"呢?
username = User.Identity.Name;
这样就可以得到你登录时的用户名的值了。
thx!!!!!!!!!!!!!!