473,785 Members | 2,879 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Context.User.Id entity question

Hi!

1st:

when I debug this:

FormsAuthentica tion.SetAuthCoo kie(email.Text, RememberCheckbo x.Checked)

and set a breakpoint a line after

FormsAuthentica tion.SetAuthCoo kie(email.Text, RememberCheckbo x.Checked)

at:
// Redirect browser back to originating page
Response.Redire ct(Application["AppPath"].ToString());
I see in my watcher: User.Identity.N ame = ""

why that?

what is my mistake? or what I must do else to set User.Identity.N ame ???
2nd:

what set exactly 'IsAuthenticate d' as authenticated?? ?
regards,
gicio
Nov 18 '05 #1
1 1438
When I understand it correct only this line of code:

FormsAuthentica tion.SetAuthCoo kie(email.Text, RememberCheckbo x.Checked)

set the Request.IsAuthe nticated to true

correct?

regards,

gicio



<gi***@gmx.de > wrote in message news:br******** ****@news.hanse net.net...
Hi!

1st:

when I debug this:

FormsAuthentica tion.SetAuthCoo kie(email.Text, RememberCheckbo x.Checked)

and set a breakpoint a line after

FormsAuthentica tion.SetAuthCoo kie(email.Text, RememberCheckbo x.Checked)

at:
// Redirect browser back to originating page
Response.Redire ct(Application["AppPath"].ToString());
I see in my watcher: User.Identity.N ame = ""

why that?

what is my mistake? or what I must do else to set User.Identity.N ame ???
2nd:

what set exactly 'IsAuthenticate d' as authenticated?? ?
regards,
gicio

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2169
by: Kevin Jackson | last post by:
If I turn off anonymous access to an ASP page and then use "Integrated Authentication" in a Intranet environment, I expected the user context to be the user who is accessing the page. It doesn't seem to be the case. I'm using a component (ASPUpload) to move a file to a share point on another box. The user context that I thought I was running under has write access to this share but I keep getting a 500 back when I run the page. Local...
1
311
by: dave | last post by:
I have an application/component that updates an individual's active directory information. The current application finds the active directory entry via the following.. Dim entry As DirectoryEntry = New DirectoryEntry("LDAP://" & m_DomainName, m_Username, m_Password, AuthenticationTypes.FastBind Dim ds As New DirectorySearcher(entry Dim filter As String = "(sAMAccountName=" & "joeuser" & ") ds.Filter = filte Dim results As...
0
394
by: okaminer | last post by:
Hi I am currently writing my first ASP.NET application I am trying to get my User Identity in the web page using the following line: CStr(context.User.Identity.Name) The problem is that when I run it in debug mode I get empty string. When I try to run it as browser it works fine Does anyone can know what need to be set in the web config (other then:
1
5795
by: Bucky Pollard | last post by:
I have a web service that needs to create a batch file and call it (since there are no APIs for the functionality I am looking for). I am using the Process and ProcessStartInfo objects. When I try to call the batch file, it just returns with a return code of 1. When I call cmd.exe, and pass the batch file as a parameter it hangs. After much frustration and aggrevation, I found that CMD IS in fact running, but it is running under the context...
2
1187
by: John Kraft | last post by:
I'm attempting to use the context.user object. In my login code, I add an identity to the context.user. I can use the debugger to watch it stuff the identity into the context.user object, but when I later try to check the context.user.identity.name it contains the empty string (""). Does anyone know why this would be the case? John
7
1683
by: Dave Mehrtens | last post by:
I am trying to configure my ASP.NET application and have come across something unexpected. First, I understand that all ASP.NET applications running on a single server will utilize a single aspnet_wp.exe process. And that this process, by default, runs under the context of the ASPNET username. I would rather use a trusted connection to connect to SQL Server to avoid having to put a username and password in a config file. However, if...
3
3353
by: Arjen | last post by:
Hi, I try to get the 'Context.User.Identity.Name' from inside the global.asax in the 'Application_BeginRequest' event. I get this error message: Object reference not set to an instance of an object. You can simple test this with: Response.Write(Context.User.Identity.Name);
2
3969
by: nalbayo | last post by:
what's the difference between HttpContext.Current.User.Identity.Name; and Context.User.Identity.Name; thanks!
3
2040
by: tshad | last post by:
I am playing with GenericPrincipal classes and am using a sample program to test it. The problem is that even though I set the roles (which shows the roles in the Context.User as being there), when the program goes from the login page to the next page - the roles in the Context.User is empty. My Login page is: *****************************************************************
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10329
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10152
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10092
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6740
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3650
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2880
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.