[Mono-dev] Cookies can not be saved

Gonzalo Paniagua Javier gonzalo at ximian.com
Fri Sep 23 00:40:42 EDT 2005


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





More information about the Mono-devel-list mailing list