@@ 898-903 (lines=6) @@ | ||
895 | ||
896 | // valid new login, without a session, morph to login.redirect.php to redirect to a session containing url |
|
897 | if( !$session_id && $args["ARLogin"] && $args["ARPassword"] && $function !== false && !$AR->hideSessionIDfromURL ) { |
|
898 | if (!$ARCurrent->session->get("oldArCallArgs", 1)) { |
|
899 | $ARCurrent->session->put("oldGET", $_GET, 1); |
|
900 | $ARCurrent->session->put("oldPOST", $_POST, 1); |
|
901 | $ARCurrent->session->put("oldArCallArgs", $args, 1); |
|
902 | $ARCurrent->session->save(0, true); |
|
903 | } |
|
904 | if ($arDefaultFunction !== $function) { |
|
905 | $args["arRequestedTemplate"] = $function; |
|
906 | } else { |
|
@@ 912-917 (lines=6) @@ | ||
909 | $function = "login.redirect.php"; |
|
910 | } else if( $session_id ) { |
|
911 | if ($ARCurrent->session->get("ARSessionTimedout", 1)) { |
|
912 | if (!$ARCurrent->session->get("oldArCallArgs", 1)) { |
|
913 | $ARCurrent->session->put("oldGET", $_GET, 1); |
|
914 | $ARCurrent->session->put("oldPOST", $_POST, 1); |
|
915 | $ARCurrent->session->put("oldArCallArgs", $args, 1); |
|
916 | $ARCurrent->session->save(0, true); |
|
917 | } |
|
918 | } else { |
|
919 | if ($ARCurrent->session->get("oldArCallArgs", 1)) { |
|
920 | $_GET = array_merge( $_GET, (array)$ARCurrent->session->get("oldGET", 1) ); |