How to change nop commerce FormsAuthentication cookie name and customer cookie name ?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
We have multiple domains, and want to have same cookie name across domain for single sign on process as mentioned in this post :
http://stackoverflow.com/questions/19531183/set-cookie-on-multiple-domains-with-php-or-javascript


So how to change the FormsAuthentication cookie name and customer cookie name?


FormsAuthentication cookie name for nop commerce is NOPCOMMERCE.AUTH and located in:



\Presentation\Nop.Web\Web.config


   <authentication mode="Forms">
      <forms name="NOPCOMMERCE.AUTH" loginUrl="~/login" protection="All" timeout="43200" path="/" requireSSL="false" slidingExpiration="true" />
    </authentication>


Customer Cookie Name is Nop.customer and located in:

\Presentation\Nop.Web.Framework\WebWorkContext.cs


  private const string CustomerCookieName = "Nop.customer";




Shall i just rename those names , or should i make changes ? will this effect any plugins ?

Any help would be great.
7 years ago
I think you can make the FormsAuthentication Cookie name and customer cookie name saved in web.config(appsetting) file,and through deal with the web.config file to change what you want.
My English does not well.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.