• Resolved grrr

    (@grrr)


    hi everyone,

    i have a problem with my multisite installation.

    When a user comes 2 site1(blog a) in my multisite inst a session ist started and a session id is given. when the user click on a link that pints to site2(blog b) a new session_id is generated … i need it 2 be the same session over all blogs …

    is there a plugin or else ?

    thx !

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Nope.

    You MIGHT be able to fake it if you’re using subfolders, but subdomains wouldn’t work (nor would mapped domains) because of the way browsers handle cross-domain permissions (tl;dr – you don’t want to share sessions).

    Keep in mind, cookies are per-site since sites are meant to be separate.

    What sort of global session data are you aiming to store here?

    Thread Starter grrr

    (@grrr)

    Ok thx 4 the answer …

    let me explain what i need …

    When the User comes to DomainA(Blog A) i add some query params with my ISAPI rewrite …

    (domaina and domainb are on same multisite installation)

    User Types in http://www.domaina.de and lands on http://www.domaina.de?aktion=a&param2=2

    Now the User klicks on a link that goes to http://www.domainb.de … i need all query params go with him … i thought i can save them in sessionstorage .. but when he is on domainb it is a new session :_/

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Well … no. THAT won’t work via sessions. Cross-domain protection in browsers pretty much promises that cookies from domainA will not be shared with DomainB.

    That said, you should be able to write a plugin that always adds the queryparams on the end of all links, which would do what you need.

    What’s the real-world usecase here? What query are you trying to share and why?

    Thread Starter grrr

    (@grrr)

    Hi my usecase: (googletranslator) 🙂

    User scans a QRCode and will be forwarded to DomainA. My ISAPI then adds
    ? entryPoint = QR .. I would like to know about any other website which input channel he originally came.

    i have done it now with a javascript plugin which extend all Links with current querystring on pageload ..

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Global Session Storage in Multisite ?’ is closed to new replies.