Pass URL parameters PAST the Login page
i sending link in email associates take them page restrict access sb on it. restrict access server behavior redirects them login page; works fine. login page functions well.
but, link in email has 2 url parameters on it, purpose of when associate gets destination page after logging in, parameters filter recordset , extract information specific individual , contract.
problem: url parameters seem page restrict access sb on (because show in url) , show in url of login.php page. when hit ‘submit’ , log in, don’t carry past point destination page, no information data table shows in contract. have tried every conceivable combination of record sets , get’s , whatnot , cannot seemingly simple problem solved.
is there unique in login or restrict access sb’s strips url of parameters?
if so, how overcome that?
if can’t overcome, how use session variables created login transaction extract information data table?
interesting question. have studied code in restrict access page , think that's problem lies. puzzles me variables preserved in query string. they're not. thing that's in query string page user redirected after logging in. fortunately, fix simple.
locate following section in restrict access page code:
if (!((isset($_session['mm_username'])) && (isauthorized("",$mm_authorizedusers, $_session['mm_username'], $_session['mm_usergroup'])))) { $mm_qschar = "?"; $mm_referrer = $_server['php_self']; if (strpos($mm_restrictgoto, "?")) $mm_qschar = "&"; if (isset($query_string) && strlen($query_string) > 0) $mm_referrer .= "?" . $query_string; $mm_restrictgoto = $mm_restrictgoto. $mm_qschar . "accesscheck=" . urlencode($mm_referrer); header("location: ". $mm_restrictgoto); exit; }
change instances of $query_string $_server['query_string'] this:
if (!((isset($_session['mm_username'])) && (isauthorized("",$mm_authorizedusers, $_session['mm_username'], $_session['mm_usergroup'])))) { $mm_qschar = "?"; $mm_referrer = $_server['php_self']; if (strpos($mm_restrictgoto, "?")) $mm_qschar = "&"; if (isset($_server['query_string']) && strlen($_server['query_string']) > 0) $mm_referrer .= "?" . $_server['query_string']; $mm_restrictgoto = $mm_restrictgoto. $mm_qschar . "accesscheck=" . urlencode($mm_referrer); header("location: ". $mm_restrictgoto); exit; }
the query string should preserved intact when user redirected original page.
i'll report problem adobe.
by way, can use find , replace change instances of $query_string $_server['query_string']. if you're feeling ambitious, though, can fix problem editing configuration file builds code restrict access page. in cs4 on windows, file need edit c:\program files\adobe\adobe dreamweaver cs4\configuration\serverbehaviors\php_mysql\restrictaccess_main.edml. in similar location in applications folder in mac. change instances of $query_string $_server['query_string'].
More discussions in Develop server-side applications in Dreamweaver
adobe
Comments
Post a Comment