Search

You searched for the word(s): userid:618046

Matching Posts

  • Re: How to prevent browser and proxy caching of web pages

    One option would be to version your js files? This article, although primarily about PowerShell, talks about this approach (sample code available on Code Project) -- http://msmvps.com/blogs/omar/archive/2006/12/15/automate-website-deployment-using-powershell.aspx Another option would be to include your js files as embedded resources. This is what we do (actually we compress and obfuscate them too via Aptana). Now I am not 100% certain, but I believe a new version of your js files would create a new
  • Re: Session Timeout Problem

    I am indeed explicitly using session variables to store information, quite a lot actually, and the forms authentication cookie wasn't the issue after all. It was the fact that expired sessions were not being cleared from the SQL Server database. This was allowing the session to be used even though, technically, it had expired. Once I got the SQL Agent job running properly the redirect took place, however, that still left me with the less than desirable situation of always being redirected to the
    Posted to State Management (Forum) by sdgough on 4/3/2007
    Filed under: Session and Authentication, Session Management, Session State
  • Re: Session Timeout Problem

    Well, this seems to work (combined withe the job that deletes expired sessions)... Sub Session_Start( ByVal sender As Object , ByVal e As EventArgs) ' Fires when the session is started If Not Request.Headers( "Cookie" ) Is Nothing AndAlso Request.Headers( "Cookie" ).IndexOf( "ASP.NET_SessionId" ) >= 0 Then If Request.Headers( "Cookie" ).IndexOf(FormsAuthentication.FormsCookieName) >= 0 Then Response.Redirect( "~/TimedOut.aspx" ) Else Response.Redirect( "~/Default.aspx" ) End If End If End Sub
    Posted to State Management (Forum) by sdgough on 4/2/2007
  • Session Timeout Problem

    I am having some issues with Forms Authentication vs. Session timeouts so hopefully someone can help. My goal is to be able to redirect users to a "your session timed out page" if they time out but simply redirect to the logon page if they haven't (i.e. when they first navigate to the site). Unfortunately I can't seem to get it to work. Here are the abbreviated, relevant config sections: < authentication mode= "Forms" > < forms ... loginUrl= "Default.aspx" defaultUrl= "Default.aspx" protection
    Posted to State Management (Forum) by sdgough on 4/2/2007
  • Re: How do you prevent a textbox from &quot;remembering&quot; previosuly entered values?

    Thanks, but the idea is to prevent all browsers from auto completing (not just IE) and to take the control out of the clients hands. That said, the AutoCompleteType="Disabled" works perfectly on a field by field basis. I chose to continue with the code I posted above though as I am applying it to a form, thereby disabling auto complete for all controls in the form.
    Posted to Web Forms (Forum) by sdgough on 12/27/2006
  • Re: How do you prevent a textbox from "remembering" previosuly entered values?

    Well, this seems to work in both IE and Firefox. 'prevent autocomplete Dim tb As TextBox tb = LoginControl.FindControl( "UserName" ) tb.Attributes.Add( "autocomplete" , "off" ) I don't think it's XHTML compliant though and it feels kinda hacked but I'll use it for now unless anyone has a better way.
    Posted to Web Forms (Forum) by sdgough on 12/21/2006
  • Re: How do you prevent a textbox from "remembering" previosuly entered values?

    Yikes, not what I was hoping for as users are entering private data into these fields (like SSN, salary etc.). I've seen this functionality on banking sites so hopefully I can find a way to disable/prevent this.
    Posted to Web Forms (Forum) by sdgough on 12/21/2006
  • How do you prevent a textbox from "remembering" previosuly entered values?

    I have a login form (and other input forms as well) that will be accessed from a shared terminal. I am looking for a way to prevent the browsers from prompting the user with previously entered values (little dropdown below the textbox) -- is there an easy way to do this?
    Posted to Web Forms (Forum) by sdgough on 12/21/2006
  • Re: How to prevent browser and proxy caching of web pages

    This works fine in IE & Firefox for me... Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1)) Response.Cache.SetCacheability(HttpCacheability.NoCache) Response.Cache.SetNoStore() I have it in my master page code-behind.
    Posted to FAQ - Frequently Asked Questions (Forum) by sdgough on 12/21/2006
  • Forms Authentication and Session Timeout

    I am storing session in SQL Server and I am using Forms Authentication in 2.0. I need to be able to redirect users to a page explaining that they timed if their session expires, but redirect them to the login page in situations where they didn't timeout. It seems that no matter what I try (editing gloabal.asax, configuring sessionState and authetication in web.config etc.) it *always* redirects me to the login page. Also, I noticed that even if the session has expired, the site can still be accessed
    Posted to State Management (Forum) by sdgough on 7/19/2006
Page 1 of 3 (27 items) 1 2 3 Next >