Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter shivks

    (@shivks)

    By using cookies this issue solved

    Hi Shivks, can you elaborate on how you set the cookie? DId you edit the plugin directly?

    Thread Starter shivks

    (@shivks)

    Hi Leland,

    1. Create a cookie in main index.php file to get the requested url

    $cookie_name = “1”;
    $cookie_value = $_SERVER[‘REQUEST_URI’];//it will get requested url
    setcookie($cookie_name, $cookie_value, 0, “/”);//once browser closed cookie //will delete

    Place this above code in main index.php file.

    2. go to wp-content\plugins\saml-20-single-sign-on\lib\classes\saml_client.php file
    search for simulate_signon function

    change the wp_redirect url in else loop to like this

    wp_redirect( ‘https://yourblogurl.com/index.php’ . $_COOKIE[‘cookiename’]);//cookie you created in index.php file

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redirect to requested page’ is closed to new replies.