Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:618046
More Search Options
RSS Available
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
Posted to
FAQ - Frequently Asked Questions
(Forum)
by
sdgough
on 7/13/2007
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 "remembering" 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 >
WindowsClient:
Snoop with 64 bit support
ASP.NET:
jQuery Hide/Close Link
ASP.NET:
Merry Christmas
TechNet Edge:
FPE Customer Story
Silverlight:
Being a writer, and having an editor. A Short Rant.
Channel 9:
Channel 9 Live at PDC09: Dr Brian Brooks (3M)
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 13 of 13
Silverlight:
Information for Silverlight HVP Developers…
WindowsClient:
Custom Content Loaders in Silverlight 4.0
WindowsClient:
MVVM Links\Info
TechNet Edge:
Check out how Dolly Parton uses IE8 and Web slices!!!
Silverlight:
A Silverlight HVP Update
Channel 9:
Channel 9 Live at PDC09: This Week on Channel 9 - PDC09 Daily Show Edition Day 1
Channel 9:
Maria Klawe: Scholar, Scientist and Microsoft Board Member
Channel 10:
Play the Bing Sherlock Holmes Game
Channel 9:
Channel 9 Live at PDC09: Loic Le Meur
Channel 10:
How to Delete Jump List Items
Channel 10:
Roll Back to Classic Network Indicator in Win7
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 2
Channel 9:
Ping 42: Is Microsoft cool? Photo DNA, Win7 tool, 10k MIX contest
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online