We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38451
    • 1 Posts
    Hi, I upgrade from revo 2.1 to MODX Revolution 2.2.0-pl2 (advanced).

    all work fine except sessions into context, with each page load the $_SESSION variable change and i can't store anything there.

    Im using a Twitter oauth integration and a snippet login with this code:

    $c=array(
                'login_context' => 'ndnews',
                'username' => $token_credentials["screen_name"],
                'password' => $autopassword,
                'returnUrl' => $okURL,
                'rememberme' => true,
            );
    $loggued=$modx->runProcessor('security/login',$c);
    if (!empty($loggued) && !$loggued->isError())
    {
      $modx->sendRedirect($nuevo?$okURL:$registradoURL);
    }
    else
      {
        $modx->sendRedirect($errorURL);
      }
    


    The login is correct, but when the $okURL loads $modx->user->id = 0 and the $_SESSION variable has changed.

    The snippet page isnt chached, I tried with and without friendly urls, with and without .htaccess, session_handler_class and session_cookie_domain changes.

    what can i do???

    the site is: www.draconianews.com


    Updating: I see the session path, with each page load, 3 new session keys are created. [ed. note: paynalton last edited this post 14 years, 8 months ago.]