Re: Web.HttpContext.Current.User.Identity.Name is blank

From: Teemu Keiski (joteke_at_aspalliance.com)
Date: 11/22/03

  • Next message: Isabella: "how to secure asp.net code?"
    Date: Sat, 22 Nov 2003 15:03:00 +0200
    
    

    And it is put to the Context on every request i.e user is athenticated with
    forms auth and then in Application_AuthenticateRequest you populate the
    HttpContext with the Principal? I am asking because HttpContext is recreated
    for every request which means that user details must also.

    -- 
    Teemu Keiski
    MCP, Microsoft MVP (ASP.NET), AspInsiders member
    ASP.NET Forum Moderator, AspAlliance Columnist
    "Dan Bart" <dblist2003@yahoo.com> wrote in message
    news:fa87ff30.0311191706.6105d46b@posting.google.com...
    > I am using an application which is a modification of IBuySpy Portal.
    > It is using Forms authentication. Users login and their name is added
    > to
    > Context
    > Then I use:
    >
    > Web.HttpContext.Current.User.Identity.Name
    >
    > to write audit trail as to what users do. Now recently on one of the
    > activities I noticed that the
    >
    > Web.HttpContext.Current.User.Identity.Name was blank. Which should not
    > have been possible?
    >
    > Can someone please tell me why this could have happened? And how I can
    > prevent this?
    >
    >
    >
    > Thanks,
    >
    >
    >
    > db
    

  • Next message: Isabella: "how to secure asp.net code?"

    Relevant Pages

    • Re: Common Code Class + Session + Request + Response
      ... the property above allows you to get access to the current request context. ... IHttpHandler Interface, because its purpose is to handle HTTP Requests. ... the HttpContext of the current Request as Properties, ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Web.HttpContext.Current.User.Identity.Name is blank
      ... Yes it is put in the Context on every request in Global.asax.vb ... > forms auth and then in Application_AuthenticateRequest you populate the ... I am asking because HttpContext is recreated ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: Class Capability Differences
      ... The HttpHandler is given the entire context in which the HTTP ... > other elements of the HttpContext of the current Request as Properties, ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: SBS 2003 Standard IIS Issue
      ... I type "nwupwebsite.com:81" into the same browser, and that request ... I could put the Video Server ... Theoretically it all works as long as I use the URL Forward in IIS, ... Context context) +98 ...
      (microsoft.public.windows.server.sbs)
    • Re: SharePoint Services Authentication problem (after SharePoint Server removal)
      ... Exception Details: System.UnauthorizedAccessException: Access to the path ... granting access rights to the resource to the ASP.NET request identity. ... System.IO.StreamWriter.CreateFile(String path, Boolean append) +55 ... context) +98 ...
      (microsoft.public.sharepoint.portalserver)