Disabling Cookie Management for MySqlDirect session ?

Disabling Cookie Management for MySqlDirect session ?

Postby Cody21 » Thu 15 Mar 2007 23:50

I have the following Web.Config entries based on your documentation - except I changed cookieless to "true". I am struggling in turning off COOKIES for my clients when they try to LOGIN. (Having the cookes enabled is causing more trouble than they're worth since people can't seem to figure out their IE settings.) So, I added the "true" option in an attempt to disable cookies ... but I have a client that still is failing on a cookie requirement even with that setting. Should that be all that is required in my web.config file to disable this or do I also have to modify the ROLES cookie section?? I've been to MSDN but have yet to figure this out. Thanks... !!








type="CoreLab.MySql.Web.Providers.MySqlSessionStateStore, CoreLab.MySql.Web, Version= 3.55.20.0, Culture=neutral, PublicKeyToken=09af7300eec23701"
connectionStringName="MemberListConnectionString"
writeExceptionsToEventLog="false"/>





userIsOnlineTimeWindow="20">


type="CoreLab.MySql.Web.Providers.MySqlMembershipProvider, CoreLab.MySql.Web, Version= 3.55.20.0, Culture=neutral, PublicKeyToken=09af7300eec23701"
connectionStringName="MemberListConnectionString"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="false"
requiresUniqueEmail="true"
passwordFormat="Clear"
maxInvalidPasswordAttempts="5"
passwordAttemptWindow="10"
minRequiredPasswordLength="4"
minRequiredNonalphanumericCharacters="0"
ApplicationName="CitySwing"/>



cacheRolesInCookie="true"
defaultProvider="AspNetMySqlRoleProvider">


description="MySqlDirectRoleProvider"
connectionStringName="MemberListConnectionString"
ApplicationName="CitySwing"
type="CoreLab.MySql.Web.Providers.MySqlRoleProvider, CoreLab.MySql.Web, Version= 3.55.20.0, Culture=neutral, PublicKeyToken=09af7300eec23701"/>

Cody21
 
Posts: 112
Joined: Thu 01 Mar 2007 00:58

Postby Alexey » Mon 19 Mar 2007 10:30

We are performing some investigations on this. Look forward to the results.
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Postby Cody21 » Sun 25 Mar 2007 16:46

Alexey _ I *figured* out how to eliminate cookies. I've included my web.config settigns below that now prevent Cookies from being set. However, per my OTHER post, this is only a temporary solution until I can get that other post working. To be clear, what I'm *really* trying to implement is a method to allow a user to remain logged in forever -- or the TIMEOUT that I set in my web.config file. So while this cookieless environment is at least allowing my users to access my site, they continue to timeout after 20 mins. Here's my web.config area re: cookiless state.




cookieless="UseUri"
name=".CSWINGLOGIN"
slidingExpiration="false"
timeout="500000">



timeout="525601"
mode="Custom"
customProvider="MySqlSessionProvider"
regenerateExpiredSessionId="true">


type="CoreLab.MySql.Web.Providers.MySqlSessionStateStore, CoreLab.MySql.Web, Version= 3.55.20.0, Culture=neutral, PublicKeyToken=09af7300eec23701"
connectionStringName="MemberListConnectionString"
writeExceptionsToEventLog="false"/>


Cody21
 
Posts: 112
Joined: Thu 01 Mar 2007 00:58

Postby Alexey » Tue 27 Mar 2007 09:40

However, per my OTHER post, this is only a temporary solution until I can get that other post working.
I've posted the answer to the OTHER post. Please check it out.
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Postby Cody21 » Tue 27 Mar 2007 14:48

Thanks Alexey - you can close THIS ticket.. I'm actively working on the other one to test the web.config settings you suggested.
Cody21
 
Posts: 112
Joined: Thu 01 Mar 2007 00:58

Postby Alexey » Wed 28 Mar 2007 05:27

Sure.
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43


Return to dotConnect for MySQL