We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 49656
    • 3 Posts
    i have modified weblogin.processor.inc.php in evo 1.0.12 (end of file):

    ...
    // login home page
    $url = $modx->config['site_url'] . substr(preserveUrl($id), 1);
    $url = str_replace("www.", "$username" . ".", $url);
    if (strpos($url, "://$username") === false)
      $url = str_replace('://', '://' . $username . '.', $url);
    $modx->sendRedirect($url);


    this modification needs for user redirect into subdomain after login like site.com > username.site.com

    redirect works good, but user session not works in redirected subdomain.

    where I have to make changes for the user's session continued to work in subdomain after login?
      • 36416
      • 589 Posts
      Quote from: sign_of_chaos at Jan 12, 2015, 02:36 AM
      redirect works good, but user session not works in redirected subdomain.
      where I have to make changes for the user's session continued to work in subdomain after login?

      Unfortunately, you'll probably need to override call to setcookie() in config.inc.php (set fifth parameter "domain" to ".domain.tld" including first dot).