Click here to Skip to main content
15,894,539 members
Articles / Web Development / ASP.NET

Additional functionality for ASP.NET 2.0's CookieParameter

Rate me:
Please Sign up or sign in to vote.
3.33/5 (3 votes)
6 Nov 20042 min read 57.6K   440   15  
This article addresses some missing functionality in ASP.NET 2.0's CookieParameter type, including getting a multi-valued cookie Key value and providing some HttpCookieEncryption support.
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>8.0.40607</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{AD403E7F-DFD3-4F3F-94F2-5607C658DF9B}</ProjectGuid>
    <OutputType>Library</OutputType>
    <RootNamespace>System.Web</RootNamespace>
    <AssemblyName>V20CookieEnhancements</AssemblyName>
    <WarningLevel>4</WarningLevel>
    <SignAssembly>true</SignAssembly>
    <AssemblyOriginatorKeyFile>..\..\Ensoft\ensoft.snk</AssemblyOriginatorKeyFile>
    <AssemblyOriginatorKeyMode>File</AssemblyOriginatorKeyMode>
    <IsWebBootstrapper>true</IsWebBootstrapper>
    <StartupObject>
    </StartupObject>
    <PublishUrl>http://localhost/HttpCookie2_0Ex</PublishUrl>
    <Install>true</Install>
    <InstallFrom>Web</InstallFrom>
    <FallbackCulture>en-US</FallbackCulture>
    <UpdateEnabled>true</UpdateEnabled>
    <UpdateMode>Foreground</UpdateMode>
    <UpdateInterval>7</UpdateInterval>
    <UpdateIntervalUnits>Days</UpdateIntervalUnits>
    <UpdatePeriodically>false</UpdatePeriodically>
    <UpdateRequired>false</UpdateRequired>
    <UpdateUrlEnabled>false</UpdateUrlEnabled>
    <ApplicationVersion>1.0.0.*</ApplicationVersion>
    <ApplicationRevision>0</ApplicationRevision>
    <BootstrapperEnabled>true</BootstrapperEnabled>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin.2.0\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE;FRAMEWORK_2_0</DefineConstants>
    <DocumentationFile>bin.2.0\Debug\V20CookieEnhancements.XML</DocumentationFile>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugSymbols>false</DebugSymbols>
    <Optimize>true</Optimize>
    <OutputPath>bin.2.0\Release\</OutputPath>
    <DefineConstants>TRACE;FRAMEWORK_2_0</DefineConstants>
    <DocumentationFile>bin.2.0\Release\V20CookieEnhancements.XML</DocumentationFile>
  </PropertyGroup>
  <ItemGroup>
    <None Include="..\..\Ensoft\ensoft.snk">
      <Link>ensoft.snk</Link>
    </None>
    <AppDesigner Include="Properties\" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="AssemblyInfo.cs" />
    <Compile Include="CookieParameterEx.cs" />
    <Compile Include="HttpCookieEncryption.cs" />
    <Compile Include="MachineKey.cs" />
  </ItemGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Web" />
    <Reference Include="System.XML" />
  </ItemGroup>
  <ItemGroup>
    <BootstrapperFile Include="Microsoft.Net.Framework.2.0">
      <InProject>False</InProject>
      <ProductName>.NET Framework 2.0</ProductName>
      <Install>true</Install>
    </BootstrapperFile>
  </ItemGroup>
  <ItemGroup>
    <Folder Include="Properties\" />
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" />
</Project>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions