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
- DllHostedComPlusServiceHost.cs
- GroupBox.cs
- GC.cs
- PropertyPathWorker.cs
- QueryOperatorEnumerator.cs
- StringAnimationUsingKeyFrames.cs
- formatstringdialog.cs
- XmlSchemaElement.cs
- DbConnectionOptions.cs
- SchemaConstraints.cs
- PluralizationServiceUtil.cs
- SynchronizationLockException.cs
- SystemWebSectionGroup.cs
- RowBinding.cs
- DrawingCollection.cs
- HtmlToClrEventProxy.cs
- WebPartChrome.cs
- ConfigXmlAttribute.cs
- BufferAllocator.cs
- CustomError.cs
- TraceHwndHost.cs
- Dictionary.cs
- OuterGlowBitmapEffect.cs
- ILGenerator.cs
- assertwrapper.cs
- ParameterBuilder.cs
- ConfigXmlDocument.cs
- DesignerTransactionCloseEvent.cs
- GenericTypeParameterBuilder.cs
- SqlDataSourceSelectingEventArgs.cs
- FontWeights.cs
- XmlSignificantWhitespace.cs
- ButtonField.cs
- BasicDesignerLoader.cs
- XmlSchemas.cs
- TransformDescriptor.cs
- PiiTraceSource.cs
- ApplicationGesture.cs
- TriState.cs
- ComMethodElementCollection.cs
- XmlDataCollection.cs
- SqlRemoveConstantOrderBy.cs
- SecondaryIndexDefinition.cs
- CodeDirectoryCompiler.cs
- TextParaClient.cs
- RepeaterDataBoundAdapter.cs
- ResourceDescriptionAttribute.cs
- FileCodeGroup.cs
- PropertyValue.cs
- Comparer.cs
- KeyInfo.cs
- CLRBindingWorker.cs
- ConfigXmlComment.cs
- FormsAuthenticationConfiguration.cs
- TextSelectionHighlightLayer.cs
- DrawingContextDrawingContextWalker.cs
- Thread.cs
- PersonalizationStateInfo.cs
- _SecureChannel.cs
- PrinterSettings.cs
- AvtEvent.cs
- TrackingQueryElement.cs
- recordstatefactory.cs
- AssociatedControlConverter.cs
- XmlArrayItemAttribute.cs
- ContentType.cs
- WebContext.cs
- Library.cs
- FillErrorEventArgs.cs
- RowSpanVector.cs
- ChangePassword.cs
- HostingEnvironment.cs
- StringComparer.cs
- ConfigXmlWhitespace.cs
- SmtpReplyReaderFactory.cs
- SubpageParaClient.cs
- Content.cs
- _SslSessionsCache.cs
- DbUpdateCommandTree.cs
- ObjectComplexPropertyMapping.cs
- ItemsControl.cs
- DataServiceOperationContext.cs
- DataGridBeginningEditEventArgs.cs
- EntityCommandDefinition.cs
- UpDownBase.cs
- GlobalizationSection.cs
- DiscoveryClientRequestChannel.cs
- AssemblyBuilder.cs
- XmlIlGenerator.cs
- RelationshipFixer.cs
- ReadingWritingEntityEventArgs.cs
- StateMachineWorkflowDesigner.cs
- DisplayNameAttribute.cs
- CodeStatement.cs
- ProjectionPathSegment.cs
- FolderBrowserDialog.cs
- EntityDesignerDataSourceView.cs
- Label.cs
- TouchDevice.cs
- ReaderContextStackData.cs