ASP.NET - Forms authentication, Cookies, Timeouts, SSL Cert.
Asked By TK Neva
04-Nov-09 02:39 PM
Hello all,
I have an aspx web site written in VB.NET. I use forms authentication with cookies and some SHA1 hashes to the passwords, and timeouts set to 10 minutes. It all works fine, but I want the page to delete the cookie if the user ever browses to another web site off of the domain. For instance: I am at www.mypage.host.com and I go to www.google.com then hit back, I want the page to ask for login credentials again and not actually let the user back in.
Is there a setting in the web.config file that can handle this. The site is still in development, but it will eventually have an SSL Certificate used with it. I know very little about these certificates, but will the SSL cert handle this issue I have?
Thanks for the help.
Forms authentication, Cookies, Timeouts, SSL Cert.
If you are using a Master page, put this in the Page_Init of that :
Response.Cache.SetNoServerCaching();
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetNoStore();
Response.Cache.SetExpires(new DateTime(1900, 01, 01, 00, 00, 00, 00));
Some web browsers should cache content over HTTPS, according to this
link -
http://stackoverflow.com/questions/174348/will-web-browsers-cache-content-over-https

Net hi friends Any one send frequently asked Important questions in C# .Net, ADO .Net, Asp .Net and Sql Server. . . . . . . . tx in Advance. . . . . . Hi, Find this. . (B)What is an IL? (B types? (B) What is concept of Boxing and Unboxing ? (B) What is the difference between VB.NET and C#? (I) what is the difference between System exceptions and Application exceptions? (I)What A) What is scavenging? (B) What are different types of caching using cache object of ASP.NET? (B) How can you cache different version of same page using ASP.NET cache object? (A) How will implement Page Fragment Caching? (B) Can you compare ASP
in Sql server as var_name int How do you separate business logic while creating an ASP.NET application? There are two level of asp.net debugging 1. Page level debugging For this we have to edit the page level debugging enable the trace to true in the line in the html format of the page. %@ Page Language = ”vb” trace = ”true”AutoEventWireup = ”false” Codebehind = ”WebForm1.aspx.vb” Inherits = ”WebApplication2.WebForm1?> 2
faqs on masterpages Hi all, can anybody tell me the FAQs on Masterpages in asp.net. Thanks alot var Hi What are Master Pages in ASP.NET? or What is a Master Page? ASP.NET master pages allow you to create a consistent layout for the pages in your application A single master page defines the look and feel and standard behavior that you want for all of the
Tracing in ASP.NET? hi all, what is tracing? how to achieve tracing in asp.net? different ways of doing tracing? thanks and regards Aman Khan hi. . Tracing in ASP.NET 2.0 Tracing is a way to monitor the execution of your ASP.NET application. You can record exception details and program flow in a way that doesn't
Role Based Security in .NET I read the article about Role based security for VB.NET http: / / www.eggheadcafe.com / articles / 20020418.asp but the download source code has an error articles on Forms Authentication, Membership and Role providers. I am building a Windows application in VB.NET under VS2005 using both SQL Server 2000 and 2005 and I am looking for a role-based security can be found in the .NET framework. However, implementing it in your ASP.NET application can be somewhat painful. Because of the stateless nature of web applications, you are based security. Another article on role based security with forms authentication. . . Introduction Forms Authentication in ASP.NET can be a powerful feature. With very little code and effort, you can have a