How to save Profile Properties in Cookie?

S

shapper

Hello,

I have only one property in my profile and I want it to be saved in a
cookie.

However, when I run my web site a database named ASPNETDB.MDF is
generated instead of using a Cookie.

How can I solve this?

I have the following in my Web.Config file:

<!-- Anonymous Identification -->
<anonymousIdentification
enabled = "True"
cookieless = "UseCookies"
cookieName = ".MyWebSiteCookie"
cookiePath = "/"
cookieProtection = "None"
cookieRequireSSL = "False"
cookieSlidingExpiration = "True"
cookieTimeout = "100000" />

...

<!-- Profile -->
<profile>

<!-- Profile Properties -->
<properties>
<add
name = "LanguagePreference"
type = "System.String"
defaultValue = "Auto"
allowAnonymous = "True" />
</properties>

Thanks,

Miguel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top