We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37514
    • 178 Posts
    Hi

    When I log in at http://www.exampledomain.com/manager

    and preview an unpublished document in context "secondcontext" at http://www.seconddomainexample.com

    I get a 404, unless I publish the document, at which point preview works fine.

    Is this a permissions issue? What have I missed / do I need to fix?

    Thank you,

    Jim

      • 22303 MODX Staff
      • 10,725 Posts
      You are going to have to login to seconddomainexample.com separately so the user can get the view_unpublished permission in that Context. PHP Sessions cannot be shared across domains, so it is not possible to Preview unpublished documents on other domains without logging into those domains specifically. You could do this across sub-domains with the proper session_cookie_domain setting which prefixes the domain with a ., e.g. .domainexample.com — then you could preview www.domainexample.com, sub1.domainexample.com, etc. as they would all share the session cookie.
        • 24629
        • 370 Posts
        Hi Jason,
        How would i do this proper session_cookie_domain setting?
        can you give an example?
        tnx
        RDG