Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 5th, 2004, 10:17 PM
Authorized User
 
Join Date: Apr 2004
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default firewall blocking cookies

i am building an application with login page and shopping cart and i noticed that when the firewall is on, you cannot populate the shopping cart or store login information. Is there a way to get around this ??

or preferably, what code can i use to at least warn the client to do something about it (like most websites do)

rrr
__________________
rrr
 
Old June 9th, 2004, 08:40 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This isn't specific to the book "ASP.NET Website Programming", but it's not a bad question. I don't want to address the issue of your firewall, because that's a local problem you have to work out. But it is good to discuss how to "mark a website down", so users will get a friendly message instead of an ugly error message.

I would do this with an XML configuration file. It would be a small file that just tells whether your website is "on" or "off". I'd read this XML file into the cache so it's available to all pages without doing any File I/O. Then I'd set a cache dependency on the actual file, so it will get reloaded automatically if you change the file. Before any page does any processing, they just check the XML in the cache to see if the website has been marked down. If it's down, they just redirect to a "I'm sorry, we're down for maintenance" page.

You should be able to put this code in the base class that all pages inherit from. This way it's only in one place.

See this thread for info on cache dependencies:
http://www.gotdotnet.com/Community/M...aspx?id=146256

Eric





Similar Threads
Thread Thread Starter Forum Replies Last Post
Blocking a user in LAN dvp10 .NET Framework 2.0 6 September 16th, 2009 08:40 AM
firewall polofson BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 November 10th, 2008 01:45 PM
blocking of page in IE austinf Javascript 0 March 13th, 2007 08:23 AM
Getting authentication past firewall johndove Classic ASP Basics 1 December 21st, 2003 01:41 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.