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
- WebPartZoneBase.cs
- PassportIdentity.cs
- UnsafeNativeMethods.cs
- storepermission.cs
- HttpUnhandledOperationInvoker.cs
- JournalNavigationScope.cs
- SQLGuid.cs
- NegatedCellConstant.cs
- GlyphCollection.cs
- TCEAdapterGenerator.cs
- SearchExpression.cs
- TypeReference.cs
- Validator.cs
- configsystem.cs
- CustomBindingElementCollection.cs
- PropertyManager.cs
- InstallerTypeAttribute.cs
- EventProviderWriter.cs
- StateMachine.cs
- PeerDuplexChannel.cs
- Storyboard.cs
- OdbcConnection.cs
- NamespaceInfo.cs
- SQLBytes.cs
- ChangeConflicts.cs
- WithParamAction.cs
- RequestContextBase.cs
- SqlBulkCopyColumnMapping.cs
- Latin1Encoding.cs
- RotateTransform.cs
- SemanticAnalyzer.cs
- Cursor.cs
- ActivityCodeGenerator.cs
- AssemblyFilter.cs
- Range.cs
- SQLStringStorage.cs
- SerializationFieldInfo.cs
- _ProxyChain.cs
- CategoryAttribute.cs
- IPGlobalProperties.cs
- BitmapImage.cs
- SortKey.cs
- ReadOnlyTernaryTree.cs
- AsyncPostBackErrorEventArgs.cs
- DynamicPhysicalDiscoSearcher.cs
- UnsafeNativeMethods.cs
- NetworkInformationException.cs
- ADConnectionHelper.cs
- ActiveXHost.cs
- ISessionStateStore.cs
- PeerEndPoint.cs
- XmlDataSourceView.cs
- SecurityRuntime.cs
- DataGridViewDataErrorEventArgs.cs
- EntityDataSource.cs
- LogLogRecordHeader.cs
- WebOperationContext.cs
- TTSEngineTypes.cs
- RowsCopiedEventArgs.cs
- Sql8ExpressionRewriter.cs
- NumberSubstitution.cs
- TypeExtension.cs
- Opcode.cs
- Splitter.cs
- MenuCommand.cs
- TimeSpanOrInfiniteConverter.cs
- StrokeCollectionConverter.cs
- TreeBuilderBamlTranslator.cs
- SchemaReference.cs
- EnvironmentPermission.cs
- SoapFormatterSinks.cs
- ScriptIgnoreAttribute.cs
- ListGeneralPage.cs
- Reference.cs
- ClockGroup.cs
- OdbcReferenceCollection.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- ColorKeyFrameCollection.cs
- Permission.cs
- XXXInfos.cs
- RectangleGeometry.cs
- AppDomainUnloadedException.cs
- XmlSerializationWriter.cs
- MessageBox.cs
- BypassElement.cs
- WindowsFormsHostPropertyMap.cs
- HostVisual.cs
- StorageEntitySetMapping.cs
- TraceFilter.cs
- namescope.cs
- SecUtil.cs
- XhtmlConformanceSection.cs
- ConfigurationElement.cs
- IProvider.cs
- COSERVERINFO.cs
- XamlParser.cs
- DummyDataSource.cs
- XpsSerializationException.cs
- Marshal.cs
- Normalizer.cs