Using Powerstore 4.5 and PowerCMS 2x Together
I have an installation in test where I have used both Powerstore 4.5 and PowerCMS. The main site is handled by PCMS, and I link to the store via a link within the site. I have altered the home and contact links in PStore to go back to the main site. If I register and login in to Powerstore as a REGULAR customer, when I go back to the main site, I am in EDIT mode.
This is obviously not good, because anyone who registers at the store will have access to the main site in edit mode. I created a php script that logs users out of the store, and out of a PowerCMS login, then links back to the main site. However, if I am logged in to the store, and I happen to hit a new browser tab of the main site, it is in edit mode.
I have discovered that Powerstore and PowerCMS use the same Session ID, which is why PowerCMS thinks it's in edit mode, and why my fix works. However, I am going to need a permanent fix that would keep regular users out of edit on a PowerCMS site if they log in Powerstore and pull up the store in another browser tab.