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
- UdpDiscoveryEndpointElement.cs
- ProviderCollection.cs
- XmlReaderSettings.cs
- DummyDataSource.cs
- XsltInput.cs
- CustomAttributeSerializer.cs
- InsufficientMemoryException.cs
- AsyncDataRequest.cs
- WebReferencesBuildProvider.cs
- BindingExpressionBase.cs
- GeneratedCodeAttribute.cs
- DesigntimeLicenseContextSerializer.cs
- RecordsAffectedEventArgs.cs
- BamlResourceSerializer.cs
- FixedPosition.cs
- RC2.cs
- TreeNodeEventArgs.cs
- ToolStripItemClickedEventArgs.cs
- AssertHelper.cs
- PageHandlerFactory.cs
- AnonymousIdentificationModule.cs
- ErrorHandler.cs
- SafeMILHandle.cs
- OdbcCommandBuilder.cs
- HitTestParameters.cs
- BinaryCommonClasses.cs
- InputReferenceExpression.cs
- DataError.cs
- BamlVersionHeader.cs
- TextTreeInsertElementUndoUnit.cs
- ContentPlaceHolder.cs
- XmlSchemaSimpleType.cs
- ProfileSection.cs
- BindingGraph.cs
- SemanticAnalyzer.cs
- NavigationExpr.cs
- TypeExtension.cs
- PersonalizationStateInfo.cs
- HandoffBehavior.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- newinstructionaction.cs
- SendMessageRecord.cs
- ZipIOModeEnforcingStream.cs
- ToolStripItem.cs
- BooleanAnimationBase.cs
- CopyCodeAction.cs
- OrderPreservingSpoolingTask.cs
- ExpressionBindingCollection.cs
- SafeWaitHandle.cs
- Int32.cs
- WebRequest.cs
- FolderLevelBuildProviderCollection.cs
- DictionaryBase.cs
- GlobalItem.cs
- AsymmetricSignatureDeformatter.cs
- MenuTracker.cs
- AutomationPeer.cs
- GPPOINTF.cs
- ButtonPopupAdapter.cs
- sapiproxy.cs
- SimpleExpression.cs
- DecimalConstantAttribute.cs
- HttpCookieCollection.cs
- ProfessionalColorTable.cs
- Keyboard.cs
- StatusBarItemAutomationPeer.cs
- FormViewRow.cs
- NamespaceInfo.cs
- SqlAliaser.cs
- UniformGrid.cs
- HashCodeCombiner.cs
- securitycriticaldata.cs
- Table.cs
- ExceptionTranslationTable.cs
- WpfMemberInvoker.cs
- ConsoleCancelEventArgs.cs
- MulticastDelegate.cs
- DataSourceXmlSerializer.cs
- EntityCommandDefinition.cs
- LineBreak.cs
- ListMarkerSourceInfo.cs
- PkcsUtils.cs
- ComplusTypeValidator.cs
- SessionStateModule.cs
- CodeParameterDeclarationExpression.cs
- DataGridViewToolTip.cs
- PaintEvent.cs
- CompositeScriptReferenceEventArgs.cs
- SortableBindingList.cs
- SessionEndedEventArgs.cs
- EntityClassGenerator.cs
- FormViewPagerRow.cs
- ParameterElement.cs
- FilterableAttribute.cs
- ResourceWriter.cs
- SessionEndingCancelEventArgs.cs
- FileReservationCollection.cs
- SqlClientPermission.cs
- BitmapEffect.cs
- VisualBrush.cs