SSL

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
15 лет назад
Is your store run under SSL or not? I see the SSL option but i want to be know if it will be working or not before that i buy a SSL
Thank you
15 лет назад
We'll implement full support for SSL in the next release. But it should work under SSL. You should make some modifications if you want to use SSL now

1) create procedure RequireSSL()
public static void RequireSSL()
{
   if (CommonHelper.ServerVariables("SERVER_PORT_SECURE") != "1")
   {
      HttpContext.Current.Response.Redirect(CommonHelper.GetStoreHTTPLocation(true) +CommonHelper.GetThisPageName() + "?" + CommonLogic.ServerVariables("QUERY_STRING"));
   }
}

2) Place it on load event handler of all pages that require SSL encryption.
3) create procedure RequireNonSSL()
public static void RequireNonSSL()
{
   if (CommonHelper.ServerVariables("SERVER_PORT_SECURE") != "1")
   {
      HttpContext.Current.Response.Redirect(CommonHelper.GetStoreHTTPLocation(false) +CommonHelper.GetThisPageName() + "?" + CommonLogic.ServerVariables("QUERY_STRING"));
   }
}

4) Place it on load event handler of all pages that do not require SSL encryption.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.