Index: /changelog
===================================================================
--- /changelog	(revision 7761)
+++ /changelog	(revision 7762)
@@ -388,2 +388,3 @@
 - Bugfix: Checkbox InnerEU in Versandzonenverwaltung lÃ€sst sich wieder fÃŒr alle speichern
 - Bugfix: Checkbox "Aktiv" in der Versandarten- /Zahlungartenverwaltung lÃ€sst sich wieder speichern
+- Bugfix: Session wird fÃŒr REST Abfragen geschlossen
Index: /controller/wpsg_ShopController.class.php
===================================================================
--- /controller/wpsg_ShopController.class.php	(revision 7761)
+++ /controller/wpsg_ShopController.class.php	(revision 7762)
@@ -744,6 +744,15 @@
         public function init() {
 
-            // https://codex.wordpress.org/Transients_APIK
-            if (!session_id()) session_start();
+            if (!session_id()) {
+
+                /*
+                 * Ich Ã¶ffne die Session und schlieÃe sie gleich wieder, so habe ich die Session Daten in $_SESSION geladen und die Session ist fÃŒr REST etc. geschlossen
+                 * Ich Ã¶ffne sie spÃ€ter wieder
+                 */
+
+                session_start();
+                session_write_close();
+
+            }
 
             $locale = apply_filters('plugin_locale', get_locale(), 'wpsg');
@@ -770,5 +779,11 @@
 
         } // public function init()
-        
+
+        public function send_headers() {
+
+            session_start();
+
+        }
+
 		public function getShopLocations() {
         	
Index: /wpshopgermany.php
===================================================================
--- /wpshopgermany.php	(revision 7761)
+++ /wpshopgermany.php	(revision 7762)
@@ -206,6 +206,4 @@
     }
 
-    if (!session_id()) { session_start(); }
-
 	// UPLOADS Dir fÃŒr MultiblogunterstÃŒtzung
 	global $current_blog;
@@ -283,4 +281,5 @@
 	add_action('widgets_init', array($shop, 'widget_init'));
     add_action('wpsg_daily_hook', [$shop, 'wpsg_daily_hook']);
+    add_action('send_headers', [$shop, 'send_headers']);
     
 	$shop->callMods('load', array());
