473,770 Members | 3,398 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 1437
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
1682
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
3352
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
9425
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10228
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
10057
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
10002
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
8883
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7415
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6676
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
5312
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5449
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.