Click to See Complete Forum and Search --> : FormsAuthentication obtaining user name
carlblanchard
Feb 11th, 2005, 06:29 AM
Hi I am using FormsAuthentication in my application and i need to grab the user who is logged in on a certain page, is it possible to get the username from FormsAuthentication or would i have to sent another cookie/session once they have logged in ?
thanks in advance
nemaroller
Feb 11th, 2005, 07:34 AM
Normally you set the user name with the authentication ticket - so you can easily grab it from the ticket anytime later.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebsecurityformsauthenticationticketclassnametopic.asp
carlblanchard
Feb 11th, 2005, 08:43 AM
thanks mate
jobs a gooden
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.