Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ // // 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
- ActionFrame.cs
- ContentType.cs
- CodeComment.cs
- CAGDesigner.cs
- EntitySet.cs
- ResXDataNode.cs
- QilScopedVisitor.cs
- Request.cs
- SynchronizedDispatch.cs
- DependencyObjectProvider.cs
- ErrorWebPart.cs
- AlternateView.cs
- DataViewManager.cs
- GifBitmapDecoder.cs
- XmlAttributeCache.cs
- Interlocked.cs
- DesigntimeLicenseContext.cs
- JsonFormatWriterGenerator.cs
- FilterElement.cs
- basemetadatamappingvisitor.cs
- StylusCollection.cs
- Size3DConverter.cs
- WebHostScriptMappingsInstallComponent.cs
- SimpleWebHandlerParser.cs
- PreProcessInputEventArgs.cs
- GenericTextProperties.cs
- BaseParser.cs
- ButtonPopupAdapter.cs
- DispatcherEventArgs.cs
- StylusDevice.cs
- StrokeRenderer.cs
- RSAProtectedConfigurationProvider.cs
- ToolboxItem.cs
- TriggerActionCollection.cs
- Thread.cs
- MsmqHostedTransportManager.cs
- PeerNameRecordCollection.cs
- nulltextnavigator.cs
- WindowsListViewGroup.cs
- HttpResponseHeader.cs
- MemberAccessException.cs
- DesignerSerializationVisibilityAttribute.cs
- Point.cs
- EntityDataSourceValidationException.cs
- mansign.cs
- HtmlInputImage.cs
- RectAnimation.cs
- HostedTransportConfigurationManager.cs
- SystemWebExtensionsSectionGroup.cs
- KoreanLunisolarCalendar.cs
- URLAttribute.cs
- PauseStoryboard.cs
- RealizationDrawingContextWalker.cs
- SmtpException.cs
- SiteMapNode.cs
- CharacterMetricsDictionary.cs
- InvokeHandlers.cs
- EnumConverter.cs
- StackOverflowException.cs
- SetIterators.cs
- DataMemberConverter.cs
- MsmqInputChannelListenerBase.cs
- ImageMetadata.cs
- HtmlLiteralTextAdapter.cs
- Point4D.cs
- MultiSelector.cs
- EmptyStringExpandableObjectConverter.cs
- CompositeControl.cs
- QEncodedStream.cs
- RowTypeElement.cs
- TextEditorLists.cs
- WindowVisualStateTracker.cs
- MailWriter.cs
- PageParser.cs
- CollectionView.cs
- ColorConverter.cs
- CodeDirectiveCollection.cs
- ProgressBarBrushConverter.cs
- Model3D.cs
- ResourceIDHelper.cs
- TextBox.cs
- DescendantOverDescendantQuery.cs
- HttpDateParse.cs
- SocketElement.cs
- CollectionChangedEventManager.cs
- ThumbAutomationPeer.cs
- SelectionProcessor.cs
- XslException.cs
- SuppressIldasmAttribute.cs
- RegexMatchCollection.cs
- MachinePropertyVariants.cs
- TouchEventArgs.cs
- ProcessThread.cs
- NavigationEventArgs.cs
- InternalPolicyElement.cs
- ActiveXHost.cs
- ColorBuilder.cs
- CompatibleIComparer.cs
- ProxyWebPartManager.cs
- ObjectDataSourceWizardForm.cs