We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • Quote from: dantarifa at Nov 04, 2013, 10:59 AM
    Enabling this will no longer allow you to view unpublished resources from the front-end right?
    That is correct, but you could try the pre-release version of my Revise extra which includes a built-in Preview. Or something similar.
    • Quote from: opengeek at Apr 05, 2012, 04:19 PM
      We added a cool new feature in 2.2.1 for sites that have no need for delivering personalized content. It's called Session-less Contexts, can improve front-end performance ~40 times, and you can read about it here.

      Hi Jason,
      I created several contexts in frontend: web, membership, video. I add session_enabled for each context.

      - web: NO
      - membership: YES
      - video: YES

      But whenever I disable session in web context, all session in other contexts has been disabled.
        zaenal.lokamaya
      • Got it! Add this to index.php

        - http: //mydomain /membership/paths ... -> membership context
        - http: //mydomain /video/paths ... -> video context

        $context = 'web'; //default context
        
        $parse = parse_url($_SERVER['REQUEST_URI']);
        if (preg_match("/^\/(membership|video)\//", $parse['path'], $matches)) {
            $context = $matches[1];
        }
        
        /* Initialize the default 'web' context */
        $modx->initialize($context);
        
          zaenal.lokamaya