Browse by Tags

Related Posts

  • Global.cs HttpContext.Current.Session is thread-safe?

    Hello I have a user control (navigation menu) that's cached. Navigation menu is being created by each user access rights. So each user has their own menu . <% @ OutputCache Duration ="99999" VaryByParam ="none" Shared ="True" VaryByCustom ="CachingMultiVersion"...
    Posted to State Management (Forum) by r00Tsecurity on 01-09-2009, 12:00 AM
    Filed under: Session, Thread safe, global.asax
  • Fire event when any page is loaded in a subfolder

    In asp.net, how could i have an event fire once, when any page is loaded from a specific sub folder? appRoot\ appRoot\app_Code appRoot\bin appRoot\folder1 appRoot\folder2 let's say I want to set session variables for the use of pages in folder2, and only the pages in folder2 need those session variables...
    Posted to Getting Started (Forum) by simpson on 07-18-2008, 12:00 AM
    Filed under: session, folder, global.asax
  • Session Time Out Problem

    Hi, I have the following code below in my Web.Config and below that code, the code which is in the Global.asax file, I have also added the code below that which is in the Main/LoggedIn.aspx screen which appears after login, the data is populated into the two labels via selection from a GridView. My problem...
    Posted to State Management (Forum) by Colin J on 05-15-2008, 12:00 AM
    Filed under: Session, Session and FormsAuthentication, session data lost problem, global.asax
  • If not in global.asax, then where?

    In searching for help on a problem a web app I'm developing, I ran across a post in another forum site that says : <quote> I would not recommend attempting to create Session items in the Session_Start handler. In ASP.NET 2.0, a session does not become alive until you add an item to it, and...
    Posted to State Management (Forum) by TheAndo on 04-18-2008, 12:00 AM
    Filed under: Session, Session_Start, global.asax
  • Can I refer to the Session object in the Application_Exception handler in my Global.asax?

    I want to put some code that looks like this into my Global.asax : void Application_Error(object sender, EventArgs e) { Session["appException"] = Server.GetLastError().GetBaseException(); Response.Redirect("FriendlyErrorPage.aspx"); } Will this code work? I know that sometimes there...
    Posted to State Management (Forum) by Afro Blanca on 12-06-2007, 12:00 AM
    Filed under: Session, global.asax, application_exception
  • Re: Images are not displayed when using 'HttpContext.Current.RewritePath()'

    Thanks for your response. I solved the problem of images by using Url Type as "Root Relative" instead of "Document Relative" I have one more doubts We rewrite the url in Application_BeginRequest() Suppose we want to rewrite the url "questions.aspx?tid=1" as "MathsQestions.aspx" We do this by calling...
    Posted to HttpHandlers and HttpModules (Forum) by meharooftp on 01-24-2007, 12:00 AM
    Filed under: Session, URL Rewriting, BeginRequest, Global.asax, Application_BeginRequest
  • How to kill the Session immediately when the browser is closed?

    I need the Session to end when a user closes the browser. In the other words, the Session_End event handler inside the global.ascx file should be called when a user closes the browser.
    Posted to State Management (Forum) by Dynamic2008 on 07-27-2009, 12:00 AM
    Filed under: session, browser, global.asax, close, session_end
Page 1 of 1 (7 items)