Re: FormsAuthentication.Encrypt problem
From: Hernan de Lahitte (hernan_at_lagash.com)
Date: 03/12/04
- Previous message: Hernan de Lahitte: "Re: Creating RSACryptoServiceProvider from X509Certificate."
- In reply to: Mark Berryman [MSFT]: "RE: FormsAuthentication.Encrypt problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 12 Mar 2004 12:48:26 -0300
Hi,
The cookie limit of 4K is certainly an issue here when you have userData of
size greater than 1K because FormsAuth performs several operations on your
data before it gets ready for packing inside a cookie. This operations like
encoding in Hexa (size x 2) and the addition of some entropy random
material, expands the userData size in a way that it quickly reach this 4K
limit. Unfortunately you won't notice what is really happening hence no
exception is thrown. The only strange behavior is that Forms seems not to be
working as expected. So beware of you userData size! (I know, it should have
been documented).
Regards,
-- Hernan de Lahitte Lagash Systems S.A. http://weblogs.asp.net/hernandl Shadowfax Dev Team This posting is provided "AS IS" with no warranties, and confers no rights. "Mark Berryman [MSFT]" <markberr@online.microsoft.com> wrote in message news:YdbsQSECEHA.3164@cpmsftngxa06.phx.gbl... > I believe the size limit is on the entire cookie itself (4KB). > > -- > > This posting is provided "AS IS" with no warranties, and confers no rights. > Use of included script samples are subject to the terms specified at > http://www.microsoft.com/info/cpyright.htm > > Note: For the benefit of the community-at-large, all responses to this > message are best directed to the newsgroup/thread from which they > originated. >
- Previous message: Hernan de Lahitte: "Re: Creating RSACryptoServiceProvider from X509Certificate."
- In reply to: Mark Berryman [MSFT]: "RE: FormsAuthentication.Encrypt problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|