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
- WorkerRequest.cs
- PropertyToken.cs
- _FixedSizeReader.cs
- TextElementAutomationPeer.cs
- DataServiceResponse.cs
- DataView.cs
- InfiniteIntConverter.cs
- Update.cs
- MenuCommand.cs
- DataColumnPropertyDescriptor.cs
- FrameAutomationPeer.cs
- Sql8ExpressionRewriter.cs
- Operator.cs
- AttributeConverter.cs
- DesignTimeTemplateParser.cs
- DecimalConstantAttribute.cs
- SessionPageStateSection.cs
- FixedPosition.cs
- XPathNode.cs
- BehaviorEditorPart.cs
- PreloadHost.cs
- CodeDomDecompiler.cs
- DoubleLinkListEnumerator.cs
- ParseHttpDate.cs
- _FtpDataStream.cs
- HttpStreamXmlDictionaryReader.cs
- HeaderedItemsControl.cs
- DockPatternIdentifiers.cs
- PaperSize.cs
- MimeFormatExtensions.cs
- WindowsBrush.cs
- FontNamesConverter.cs
- UnsafeNetInfoNativeMethods.cs
- Duration.cs
- XmlSchemaValidationException.cs
- FixedTextContainer.cs
- EnumerableValidator.cs
- FontNamesConverter.cs
- MappingException.cs
- TabletDeviceInfo.cs
- RuntimeArgumentHandle.cs
- WmiInstallComponent.cs
- StylusPointProperties.cs
- ReaderContextStackData.cs
- TypographyProperties.cs
- AsyncParams.cs
- CalendarData.cs
- InfoCardXmlSerializer.cs
- JsonStringDataContract.cs
- MonitorWrapper.cs
- FontFamilyIdentifier.cs
- QilScopedVisitor.cs
- ResourcesBuildProvider.cs
- OutputCacheProfile.cs
- ConfigXmlCDataSection.cs
- RegexInterpreter.cs
- ToolStripDropDownMenu.cs
- EntityAdapter.cs
- PeerNameRecord.cs
- ExpressionNormalizer.cs
- XmlSchemaSimpleType.cs
- ServiceMetadataExtension.cs
- ReliabilityContractAttribute.cs
- XPathCompileException.cs
- TextInfo.cs
- GridViewDeletedEventArgs.cs
- MailBnfHelper.cs
- NullableDecimalAverageAggregationOperator.cs
- CompilerGeneratedAttribute.cs
- Executor.cs
- ParenthesizePropertyNameAttribute.cs
- SessionPageStatePersister.cs
- DataObjectSettingDataEventArgs.cs
- CategoryAttribute.cs
- Int16Storage.cs
- MessageQueuePermission.cs
- StringBuilder.cs
- SQLDouble.cs
- WCFBuildProvider.cs
- RichTextBoxContextMenu.cs
- IBuiltInEvidence.cs
- TextAnchor.cs
- HtmlTitle.cs
- WindowsUserNameCachingSecurityTokenAuthenticator.cs
- RegexMatch.cs
- DbConvert.cs
- FieldDescriptor.cs
- NullableDecimalAverageAggregationOperator.cs
- DataServices.cs
- LayoutDump.cs
- WebServiceErrorEvent.cs
- MeshGeometry3D.cs
- DynamicArgumentDesigner.xaml.cs
- MenuItem.cs
- UserControl.cs
- WebReferencesBuildProvider.cs
- Memoizer.cs
- ByeMessageCD1.cs
- SkinBuilder.cs
- BrowserDefinitionCollection.cs