Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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 March 15th, 2006, 07:53 AM
Registered User
 
Join Date: Aug 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default cookie turn off

hi
how turn off cookies for one page in my web site..?
any suggestion is welcome

with regards
swagat

 
Old March 15th, 2006, 09:00 AM
Wrox Technical Editor
 
Join Date: Dec 2005
Posts: 271
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm not sure how you turn off cookies for a single page

Here's how you can turn cookies off for your entire ASP.NET application:

Open your web.config file and set cookieless to TRUE.

Example:

   <sessionState
      mode="InProc"
cookieless="true"
      timeout="20"
   />

- A.Kahtava
 
Old March 15th, 2006, 09:25 AM
Wrox Technical Editor
 
Join Date: Dec 2005
Posts: 271
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Use the Cookie.Discard Property to turn off cookies on a specific page: http://msdn2.microsoft.com/en-us/lib...e.discard.aspx

- A.Kahtava





Similar Threads
Thread Thread Starter Forum Replies Last Post
Search - Turn Off All Sites druk BOOK: Beginning SharePoint 2007: Building Team Solutions with MOSS 2007 ISBN: 978-0-470-12449-9 1 December 18th, 2007 12:49 PM
how to turn on or off standard bar of IE Browser phuong171 Javascript 1 March 9th, 2007 04:21 PM
How can I turn off Warning information? Brian263 Access 2 March 23rd, 2004 09:11 AM
to turn Calculation OFF for all except one column alienscript Excel VBA 1 December 17th, 2003 09:01 AM
Turn a table on its side nbryson SQL Language 12 August 20th, 2003 08:01 AM





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