Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 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 May 18th, 2010, 03:31 AM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default Setting cookies with key-value to blank.

Hi,

below code is not working...trying to clear the cookes, where the cookies are with key-value.

Code:
 
foreach(HttpCookie fld in HttpContext.Current.Request.Cookies[Common.USER_COOKIE])
{
 HttpContext.Current.Request.Cookies[Common.USER_COOKIE][fld] = "";
}





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chart goes blank when setting parameters Joel Overbeck Crystal Reports 0 August 12th, 2008 07:15 AM
Setting cookies in code DavidStowell VB How-To 1 May 23rd, 2008 02:53 PM
<bean:message key="PNR.INPUT"/> key has null value warsha_14 Struts 1 November 13th, 2006 07:26 AM
Setting and Retrieving Cookies ninel ASP.NET 2.0 Professional 0 April 13th, 2006 03:01 PM





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