Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / MIT / System / Web / Mobile / CookielessData.cs / 1305376 / CookielessData.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.Mobile
{
/*
* CookielessData
* encapsulates access to data to be persisted in local links
*
* Copyright (c) 2000 Microsoft Corporation
*/
using System.Collections.Specialized;
using System.Web.Security;
using System.Security.Permissions;
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
public class CookielessData : HybridDictionary
{
///
public CookielessData()
{
String name = FormsAuthentication.FormsCookieName;
String inboundValue = HttpContext.Current.Request.QueryString[name];
if(inboundValue == null)
{
inboundValue = HttpContext.Current.Request.Form[name];
}
if(inboundValue != null)
{
FormsAuthenticationTicket ticket = FormsAuthentication.Decrypt(inboundValue);
FormsAuthenticationTicket ticket2 = FormsAuthentication.RenewTicketIfOld(ticket);
this[name] = FormsAuthentication.Encrypt(ticket2);
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ByteStreamMessageEncoder.cs
- BaseDataList.cs
- MaskedTextBox.cs
- AliasedSlot.cs
- ListControlStringCollectionEditor.cs
- GenericEnumerator.cs
- Regex.cs
- SecureUICommand.cs
- ToolTipAutomationPeer.cs
- WindowsTitleBar.cs
- SchemaObjectWriter.cs
- WinFormsComponentEditor.cs
- Schema.cs
- HelpInfo.cs
- DeferredSelectedIndexReference.cs
- ExpandCollapsePattern.cs
- SerTrace.cs
- DtrList.cs
- ProxySimple.cs
- SmtpCommands.cs
- AppDomain.cs
- Span.cs
- WindowsFormsSynchronizationContext.cs
- DPCustomTypeDescriptor.cs
- StandardToolWindows.cs
- SerializerProvider.cs
- SQLInt16.cs
- RelatedPropertyManager.cs
- PropertyBuilder.cs
- XmlTextReader.cs
- ToolboxItemImageConverter.cs
- UrlMappingsSection.cs
- SafePEFileHandle.cs
- WebResourceUtil.cs
- XamlRtfConverter.cs
- IconConverter.cs
- AspNetSynchronizationContext.cs
- BindingElementCollection.cs
- MatrixConverter.cs
- SamlAttributeStatement.cs
- OpacityConverter.cs
- Propagator.cs
- BypassElement.cs
- ToolBarTray.cs
- StringUtil.cs
- XmlBoundElement.cs
- TypeBinaryExpression.cs
- CodeMemberEvent.cs
- LeaseManager.cs
- CurrentTimeZone.cs
- SchemaObjectWriter.cs
- storepermission.cs
- AgileSafeNativeMemoryHandle.cs
- PointCollection.cs
- Rect3D.cs
- CookieProtection.cs
- ListViewPagedDataSource.cs
- ReceiveActivityDesignerTheme.cs
- UICuesEvent.cs
- HtmlHead.cs
- DllNotFoundException.cs
- HtmlSelect.cs
- CodeGeneratorAttribute.cs
- HtmlInputImage.cs
- ContentPropertyAttribute.cs
- Html32TextWriter.cs
- ErrorWebPart.cs
- ScrollChrome.cs
- IdentifierCreationService.cs
- PbrsForward.cs
- DesigntimeLicenseContextSerializer.cs
- SystemResourceKey.cs
- VersionPair.cs
- StringWriter.cs
- Win32PrintDialog.cs
- RichTextBox.cs
- __ConsoleStream.cs
- XmlSchemaAttribute.cs
- CompoundFileStorageReference.cs
- _BaseOverlappedAsyncResult.cs
- PanelDesigner.cs
- Qualifier.cs
- InProcStateClientManager.cs
- FigureParagraph.cs
- BuildProviderAppliesToAttribute.cs
- ElementAction.cs
- BaseCodeDomTreeGenerator.cs
- ComAwareEventInfo.cs
- Int32AnimationBase.cs
- DbCommandTree.cs
- SchemaAttDef.cs
- DataAdapter.cs
- UnaryExpressionHelper.cs
- HtmlTextArea.cs
- MultiTrigger.cs
- followingsibling.cs
- ClrPerspective.cs
- _ListenerAsyncResult.cs
- ResourceAttributes.cs
- VarRemapper.cs