Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
I was wondering if a cookie or session variable is being set when switching between Draft (aka Stage) and Live mode when viewing the site as a logged in admin?
If so, how I can call a a preview of a page without "switching" to that mode? For example, is there a special GET string I can add on the end like this?
I am guessing that this may take some poking around in the internals of SS, but wanted to throw it out there to the community and see if anyone else has run into a situation like this before.
Yes it is stored in a cookie (or session). In order to switch page you must change the GET variable back to the 'live'. No built in way to override this cookie.
Could you point me in the right direction if I wanted to try and modify some of the core SS files to turn this off?
Thanks again! ...Jeremy
See the choose_site_stage() function in Versioned.php Line 577.