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
- PrivateFontCollection.cs
- WebPartEditorOkVerb.cs
- SqlDependency.cs
- Latin1Encoding.cs
- AssemblyAttributesGoHere.cs
- VisualStates.cs
- MembershipPasswordException.cs
- UnsafeNativeMethods.cs
- FormViewPageEventArgs.cs
- SecurityContext.cs
- InternalBase.cs
- ButtonField.cs
- SpellerHighlightLayer.cs
- StrongNameUtility.cs
- SqlInternalConnectionSmi.cs
- LinqToSqlWrapper.cs
- HttpWebResponse.cs
- CorePropertiesFilter.cs
- CodeIndexerExpression.cs
- BamlRecordReader.cs
- TrustLevelCollection.cs
- EmptyReadOnlyDictionaryInternal.cs
- NotEqual.cs
- ComponentDispatcherThread.cs
- RuntimeHandles.cs
- CompiledAction.cs
- WebPartConnectionsConnectVerb.cs
- DataSetFieldSchema.cs
- Rights.cs
- CheckPair.cs
- FloatSumAggregationOperator.cs
- DeclaredTypeElementCollection.cs
- IMembershipProvider.cs
- DummyDataSource.cs
- QueuePathEditor.cs
- DependencyPropertyKind.cs
- DiscoveryServiceExtension.cs
- PeerUnsafeNativeMethods.cs
- controlskin.cs
- HeaderElement.cs
- XmlAtomicValue.cs
- RectangleHotSpot.cs
- DataGridColumnCollection.cs
- TextServicesCompartmentEventSink.cs
- RedBlackList.cs
- WriteTimeStream.cs
- RijndaelManagedTransform.cs
- LocationReferenceEnvironment.cs
- XmlElementAttributes.cs
- WebDisplayNameAttribute.cs
- UiaCoreApi.cs
- Baml2006ReaderContext.cs
- XmlLanguageConverter.cs
- MaterialCollection.cs
- OrderedDictionaryStateHelper.cs
- ReliableRequestSessionChannel.cs
- MailBnfHelper.cs
- DatePickerDateValidationErrorEventArgs.cs
- ISO2022Encoding.cs
- ObjectStorage.cs
- DocumentOrderComparer.cs
- DataObjectFieldAttribute.cs
- WindowVisualStateTracker.cs
- DigitShape.cs
- MimeBasePart.cs
- Lookup.cs
- XamlParser.cs
- ParseChildrenAsPropertiesAttribute.cs
- PersonalizationEntry.cs
- TextEditorSelection.cs
- KnownTypes.cs
- DbConnectionFactory.cs
- FormViewDeletedEventArgs.cs
- RepeaterItemEventArgs.cs
- OrthographicCamera.cs
- TypeBuilderInstantiation.cs
- Parallel.cs
- XdrBuilder.cs
- AsyncOperationManager.cs
- CqlGenerator.cs
- AssignDesigner.xaml.cs
- ReadOnlyDictionary.cs
- XmlAttributeOverrides.cs
- Utilities.cs
- ButtonPopupAdapter.cs
- RequestQueryParser.cs
- Matrix3DValueSerializer.cs
- NumberFormatter.cs
- ToolStripPanelRow.cs
- ProjectionPlan.cs
- Canvas.cs
- HostnameComparisonMode.cs
- HtmlSelect.cs
- TemplateKeyConverter.cs
- _AcceptOverlappedAsyncResult.cs
- ProgressBarHighlightConverter.cs
- PropertyMapper.cs
- COM2Properties.cs
- DSACryptoServiceProvider.cs
- HyperlinkAutomationPeer.cs