C# - Client Caching On Authenticated Pages?

Dec 9, 2010

Our web app currently under development has authentication on all the pages.

We can deny a user access to any particular page but have found that if a user had previously opened the page that they can still access the page via the url. [Even if they log out and log in]

Assuming that the page is coming from client cache [Ctrl F5 in IE kicks in the proper authentication behavior or clearing the client cache]

A lot depends on how we have implemented the authentication but a quick fix on our side would be from within the admin section where we deny access to certain pages that we expire client cache for that page.

Is there a way to do this programmatically.

This would mean that client caching would continue to work as normal for all other users that still had access to the page in question.

View 1 Replies


Similar Messages:

Caching - How To Turn Pages Into Static Pages As Part Of The Build

Dec 29, 2010

I have a few pages that are completely static. They only change at build time. But they are expensive to create. For the ones that are kind of expensive to create, I cache them for very long times using the ASP.NET output caching. But for one page, I really want it cached forever and ever or until the the next build.

What is the most expedient way to make this happen? Is there a build in feature that achieves this or a 3rd party tool?

(yeah, for the moment I plan to do the "view source" and copy paste thing, which isn't a very elegant build step)

View 2 Replies

How To Access The Forms Authentication Ticket In Authenticated Pages

Jun 25, 2010

I have used the Forms Authentication for logging in and in that i have created the Forms Authentication Ticket and in that ticket i have passing the data with comma seperated values.how can i get the data which is in the ticket to access in the Authenticated user pages

View 1 Replies

C# - Add Cache-Control: No-store In Authenticated Pages In DotNetNuke 5.4.4?

Jan 31, 2011

I would like to know what is the best way to include Cache-Control: no-cache, no-store in authenticated pages in DotNetNuke 5.4.4. In fact, I want to prevent caching in IE6/7 and FireFox as well.

View 1 Replies

Web Forms :: MTP Server Requires A Secure Connection Or Client Was Not Authenticated

May 7, 2015

I have written the above code and im getting an error as below-System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at at

System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response) at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, MailAddress from, Boolean allowUnicode) at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception) at System.Net.Mail.SmtpClient.Send(MailMessage message) at smtptest._Default.btnSend_Click(Object sender, EventArgs e) in c:usersadministratordocumentsvisual studio 2010ProjectssmtptestsmtptestDefault.aspx.cs:line 71

Its working on local but when im hosting my application im getting above error

using (MailMessage mm = new MailMessage("myid@gmail.com","reciverid@yahoo.com"))
{
mm.Subject = "test";
mm.Body = "email testing";
mm.IsBodyHtml = false;
SmtpClient smtp = new SmtpClient();

[code]....

View 1 Replies

Web Forms :: SMTP Server Requires A Secure Connection Or Client Was Not Authenticated

Oct 11, 2012

I am created a from sending mails. I have tried ur code.. But I am getting under error.

The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required 

View 1 Replies

Web Forms :: Gmail Error / SMTP Server Requires A Secure Connection Or Client Was Not Authenticated

Jun 16, 2015

How to fix this error,

"The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at"

[URL].....

View 1 Replies

Web Forms :: Sending Email - SMTP Server Requires Secure Connection Or Client Was Not Authenticated

Aug 18, 2015

I want to send a email without using gmail domain but its giving error given below...

The SMTP server requires a secure connection or the client was not authenticated. The server response was: Relaying not allowed - sender domain not local

View 1 Replies

Web Forms :: Preventing Caching Of Web Pages?

Jan 28, 2011

I am relatively new to ASP.NET and have searched the Internet to find guidance in preventing caching of web pages (in the latest versions of IE, Firefox, Chrome and Safari). Based on my search, I found a lot of conflicting/confusing info. As best as I can tell, it appears that I need to add the following 3 lines to the <head> section of my .aspx files:

[Code]....

if the aforementioned lines are correct and if all 3 lines are necessary? I have tried using different combinations of the 3 lines, but I get conflicting results (i.e., sometimes the page is cached and sometimes it's not).

View 2 Replies

Output Caching On Static Pages?

Jan 28, 2010

Does output caching help boost the performance of asp.net mvc pages that just consist of html, css, images, and javascript?

View 1 Replies

MVC :: Output Caching For Several Client IP's

Apr 7, 2010

I have a page with outputcache right above the action in a controller class. What I want is to disable this outputcache for myself. Can it be done by IP?

Something like that: [OutputCache(Duration = 60, VaryByParam = "None", IgnoreIP = "100.100.100.100")]

View 6 Replies

Web Forms :: Re: Master Pages And XMLDataSource Caching ?

Mar 31, 2010

I have a master page that hosts a user control to load my menus from the database depending on the user logged in.So when ever a user logs in, the menu list corresponding to him is loaded into the XMLDatasource that is the Data source for the menus.Following is the code:

[Code]....

The problem is if I log out as one user and Login as another, the XML Data source is not invalidating the cache... and is loading the same values again ..Further I even noticed that the program flow control is not transfered to the LoadMenus.ascx control at times and the page is loaded with out having to go through the control flow of all the controls on the master page. i am not sure how to force the control to pass through a single control.I have set the EnableCaching to false on the xml data source.

View 2 Replies

C# - Caching User Controls On The Client?

Jul 2, 2010

it is possible to cache an ASP.NET UserControl on the Client.

I have an User Control that queries a DB and renders a GridView. It must be on the Client because the query results vary from user to user (by the User.Identity.Name).

View 2 Replies

Security :: Grant Access To Default Page For All Users - Authenticated & Non-Authenticated?

Aug 18, 2010

I've a default.aspx page in my application's root folder. I added a a page in the root of inetpub that redirects requests to the default page. The idea is that the user need only enter the server name to get to the default page. How can I set things up so that all users have access to the default.aspx and that they only have access to the other pages once they've been authenticated?

I am using Windows Integrated Security and the users are being challenged and authenticated properly. I want them to be able to access Default.aspx without any challenges.

(On a side note which may answer this question, when using WIS does the user *allows* have to be challenged? Isn't it possible to pass through their Windows User and ID without the prompt?)

c: inetpubwwwroot
edirect.aspx (set as default document in IIS and simple executes Response.redirect("sites/mercury/default.aspx")
c:documents and settingsall usersdocumentswebsitesmercurydefault.aspx (home page for the site & server)web.config includes

[Code]....

View 2 Replies

Caching Asp.net Page Response On Client Side?

Mar 3, 2011

I am trying to cache asp.net page response on client Browser by adding following cache headers

Response.Cache.SetExpires(DateTime.Now.AddMinutes(10));
Response.Cache.SetCacheability(System.Web.HttpCacheability.Public);

With the above headers it is not working.. May I know what else to be added?

I am using jquery from client side to get the page response

View 1 Replies

C# - Client Side Caching Of XML Returned From HTTPHandler?

Nov 23, 2010

I have an HTTPHandler that returns some XML. I am trying to figure out how to get this to cache in the browser, as if it were a static XML file.

I've tried this along with a few other variations and other Cache options, but nothing I do seems to make it cache (according to Fiddler).

how I can cache the output on the client's browser?

[Code]....

View 1 Replies

C# - How To Disable Caching On Few Pages, So As To Avoid Double Submission Of Forms

Jan 28, 2011

how to disable caching on few pages, so as to avoid double submission of forms

View 2 Replies

404 Error When Caching .aspx Pages With HTML5 Cache Manifest - How To Fix It

Feb 28, 2011

Has anyone been able to cache .aspx pages using the HTML cache manifest? I am porting an html application over to asp.net (and mvc2) and I get a 404 error when trying to cache any *.aspx page. Other files still cache normally (.js, .css, etc). I have changed permissions, handlers, and file names and still no luck. Below is the actual manifest:

CACHE MANIFEST
# This file was generated at 2/28/2011 4:03 PM
CACHE:
/Content/Site.css
/Content/Table_style.css
/Scripts/jquery-1.5.min.js
/Scripts/json.js
/Scripts/persist-all.js
/Views/Data/Details.aspx
/Views/Data/NotFound.aspx
/Views/Data/OffLine.aspx
/Views/Data/OnLine.aspx
/Views/Data/Test.aspx
/Views/Home/About.aspx
/Views/Home/Index.aspx
/Views/Shared/Error.aspx

View 1 Replies

Web Forms :: Enabling Client Caching Of Part Of A Page That Is Changing Often In Some Parts But Not Others?

May 24, 2010

Let's say you had a page like an eBay auction, where some of the content (top bidder, bids, history, etc) needed to be up to date but other sections would likely never change, like the description. I'd like to know the "right" method for getting that static section cached.

The "cheezy" solution would be to code it up in a separate javascript .js file as a bunch of "document.writeln()" calls, but that's plain evil and ugly.

If I made it a Content section of a master page, that might get it cached at the server, but the client has no way to know that this particular section of the page will never change.

I could IFRAME it but I don't always know the dimensions.

I'm sure this has all been done before, and as much as I love my own wheels, I'd rather not reinvent this one :-)

View 2 Replies

State Management :: Partial Page Caching (user Control Caching) And Button Events?

Jun 14, 2010

I have a page with a number of user controls, In one of my user controls I have a button event. I turn on output cache for the user control that has the button and vary by control using the ID property of a hidden field control in the user control. whenever I turn on the output cache my button event doesn't fire.

View 2 Replies

Client Callbacks With Master Pages?

Aug 30, 2010

I'm following this example: [URL]

And I can get it to work with just a single page and a code behind, but when I add a masterpage, the examples doesn't work properly. Within my master page, I have a head content section and a body content section. It's nothing fancy.

How do i do client callbacks with master pages?

View 2 Replies

C# - IIS Not Serving Website Pages On Remote Client

Dec 28, 2010

I am new to IIS and asp and i am having a problem. I am creating a asp.net website in physical folder wwwrootSharePage and virtual directory SharePage When i visit the site on local host or using my ip address or through dyndns proxy on my own computer , the page is served fine, But when any one else from any other computer access my website it takes a long time in loading and finally his browser throws an error (may be page not found error,not sure, see for yourself). I have even changed Authentication mode to none and tried with firewalls closed , still page is not served.

You can have a look here

[URL]

(hosted on my home computer so can be unavailable at times when i have switched off my computer)

or try with my ip address

updated http://117.205.103.192/SharePage/ (can change ,i have a dynamic ip address)

Info:
IIS version 7.5
OS : Windows 7
.Net 4 (even in IIS)

View 3 Replies

C# - Decompress Html Pages Client Side?

Dec 22, 2010

I have this proxy code taken from this article and created as an HttpHandler

public void ProcessRequest(HttpContext context)
{
string url = context.Request["url"];

[code]...

View 1 Replies

WCF / ASMX :: Implement Caching Using System.Web.Caching?

May 15, 2010

how to implement caching in wcf service using System.Web.Caching

View 2 Replies

Implementing Client Callbacks Programmatically Without Postbacks In Web Pages

May 6, 2010

Apropos MSDN link: [URL] [.NET Framework 4 - ASP.NET] Implementing Client Callbacks Programmatically Without Postbacks in ASP.NET Web Pages Using the code from the above link in the following code snippet, if you keep a break point on the statement "if (IsPostBack)" in the Page_Load event. The control moves into the "if (IsPostBack)" block after the alert, which mean that it is a Postback. Then, how come you say "...Without Postbacks"? I am getting confused here.

<%@&nbsp;Page&nbsp;Language="C#"&nbsp;AutoEventWireup="true"&nbsp;CodeBehind="Default.aspx.cs"&nbsp;Inherits="ASPCS2008ClientCallbacksProgrammatically._Default"&nbsp;%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" [URL]>
<%@&nbsp;Implements&nbsp;Interface="System.Web.UI.ICallbackEventHandler"&nbsp;%>
<script runat="server">
string aStringValue;
public void RaiseCallbackEvent(String eventArgument)
{
aStringValue = eventArgument;
}
public string GetCallbackResult()
{
return aStringValue;
}
protected void Page_Load(object sender, EventArgs e)
{............................................................

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved