[Mono-dev] Cookies can not be saved

David jiangchengyao at gmail.com
Sat Sep 24 23:22:33 EDT 2005

I add the <machineKey> in my Web.Config. It likes:
<machineKey validationKey="C50B3C89CB21F4F1422FF158A5B42D0E8DB8CB5CDA1742572A487D9401E3400267682B202B746511891C1BAF47F8D25C07F6C39A104696DB51F17C529AD3CABE" 
decryptionKey="8A9BE8FD67AF6979E7D20198CFEA50DD3D3799C77AF2B72F" validation="SHA1" />
And the problem solved.
I just want to know why this problem doesn't exist in Windows while I also using the MONO. And, aslo, it does not exist in MS .NET?

----- Original Message ----- 
From: "Gonzalo Paniagua Javier" <gonzalo at ximian.com>
To: <mono-devel-list at lists.ximian.com>
Sent: Friday, September 23, 2005 12:40 PM
Subject: Re: [Mono-dev] Cookies can not be saved

> On Fri, 2005-09-23 at 11:46 +0800, David wrote:
>> When I update the .dll files in my Bin Directory, I find the cookies
>> that saving user's login information will lost, and this means it
>> requires the user to login again in my website.You know it's too
>> inconvience, how can I solve this problem? 
> See the documentation on machine.config/web.config schema regarding
> <system.web><machineKey>.
> What you will need for you case is to have fixed values for
> validationKey and decryptionKey because the problem you're seeing is
> caused by those 2 keys being generated after the application is shutdown
> and reloaded (which happens when you modify your Bin directory or
> global.asax...).
> -Gonzalo
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list

More information about the Mono-devel-list mailing list