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
- ProfessionalColorTable.cs
- DPCustomTypeDescriptor.cs
- DependencyPropertyDescriptor.cs
- ArglessEventHandlerProxy.cs
- TraceHelpers.cs
- ControlBindingsCollection.cs
- ViewUtilities.cs
- CustomBinding.cs
- CacheMode.cs
- XPathDescendantIterator.cs
- GridViewColumnHeaderAutomationPeer.cs
- Resources.Designer.cs
- PngBitmapEncoder.cs
- ReflectTypeDescriptionProvider.cs
- OdbcEnvironmentHandle.cs
- CustomActivityDesigner.cs
- KeyGestureValueSerializer.cs
- IdentitySection.cs
- ReflectionTypeLoadException.cs
- OleDbCommandBuilder.cs
- RegexCaptureCollection.cs
- RSAPKCS1SignatureDeformatter.cs
- SimpleTextLine.cs
- RoleService.cs
- StorageMappingItemLoader.cs
- SchemaNames.cs
- Font.cs
- SystemPens.cs
- CodeCommentStatementCollection.cs
- IIS7UserPrincipal.cs
- ReadOnlyCollection.cs
- Cursor.cs
- HtmlLink.cs
- AssemblyNameProxy.cs
- _NTAuthentication.cs
- XmlAttributeOverrides.cs
- InvokePatternIdentifiers.cs
- _HTTPDateParse.cs
- StrongNamePublicKeyBlob.cs
- SystemNetHelpers.cs
- PixelShader.cs
- SerializationFieldInfo.cs
- ControlOperationInvoker.cs
- Help.cs
- ConsoleCancelEventArgs.cs
- HitTestDrawingContextWalker.cs
- ConnectionPoint.cs
- IIS7UserPrincipal.cs
- EditorAttribute.cs
- IItemContainerGenerator.cs
- XmlDataProvider.cs
- httpserverutility.cs
- CompositeScriptReference.cs
- TableHeaderCell.cs
- XmlWriter.cs
- ProxyManager.cs
- TableParagraph.cs
- PreservationFileReader.cs
- IndexedString.cs
- TextRunTypographyProperties.cs
- KeyGesture.cs
- MetadataItemEmitter.cs
- DelayedRegex.cs
- HttpDigestClientCredential.cs
- ObjectDataSource.cs
- JoinElimination.cs
- LinqDataSourceDisposeEventArgs.cs
- WebConfigurationManager.cs
- TextServicesCompartmentContext.cs
- DependencyPropertyAttribute.cs
- IItemContainerGenerator.cs
- MdImport.cs
- PublisherMembershipCondition.cs
- ManipulationDevice.cs
- ImageMetadata.cs
- XPathSelfQuery.cs
- LazyTextWriterCreator.cs
- TextBox.cs
- AsyncResult.cs
- ProfessionalColorTable.cs
- KoreanCalendar.cs
- HandlerBase.cs
- StringArrayConverter.cs
- SqlWorkflowInstanceStoreLock.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- SHA1Managed.cs
- PropertyChangedEventManager.cs
- AutoCompleteStringCollection.cs
- CoreSwitches.cs
- HorizontalAlignConverter.cs
- StandardToolWindows.cs
- Helpers.cs
- Menu.cs
- FieldNameLookup.cs
- ApplicationHost.cs
- TextEmbeddedObject.cs
- CssTextWriter.cs
- ColumnPropertiesGroup.cs
- ProfileEventArgs.cs
- LogicalTreeHelper.cs