Pass parameters to URL AFTER Login page

I send you a link in an e-mail to the partners which will lead them to a page with a SB access restricted to this topic. The server behavior restrict access redirects to the login page; which works very well. The login page works perfectly well.

But the link in the email has two URL parameters on it, which is so that when the partner gets to the once connected landing page, these settings will filter the recordset and retrieve information specific to the individual and their contract.

Problem: URL parameters appear to access the page with the restrict access SB on him (because they appear in the URL) and they were also highlighted in the URL of the page Login.php. But when actually, I hit 'submit' and connect, they are not passed that point to the destination page, so no information of the data table appears in the contract. I tried all imaginable combinations of recordsets and EEG and whatnot, and I can't get this look simple problem solved.

Is there something unique in the connection or restrict access SB that strips the URL parameters?
If so, how that overcome?

So which cannot be overcome, how Session variables created by the operation of connection is used to extract the information from the data table?

Interesting question. I studied the code to restrict access to the Page and think that this is the rub. What intrigues me is that you say that the variables are kept in the query string. They are not. The only thing that is in the query string is the page to which the user should be redirected after login. Fortunately, the solution is simple.

Find the following section in the restrict access to 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;
}

Replace all instances of $QUERY_STRING $_SERVER ['QUERY_STRING'] like 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 now be kept intact when the user is redirected to the page of origin.

I'll report this problem to Adobe.

In addition, you can use find and replace to replace all instances of $QUERY_STRING $_SERVER ['QUERY_STRING']. If you're feeling ambitious, however, you can resolve this problem by modifying the configuration file that generates code to restrict access to the Page. In CS4 on Windows, the file you need to edit is C:\Program Files\Adobe\Adobe Dreamweaver CS4\configuration\ServerBehaviors\PHP_MySQL\RestrictAccess_main.edml. It will be in a similar situation in the Applications of Mac folder. Simply change all instances of $QUERY_STRING to $_SERVER ['QUERY_STRING'].

Tags: Dreamweaver

Similar Questions

  • Passing the username to the login page to the home page

    Dear experts,

    I'm working on JDeveloper 11.1.2.2.0

    I have two pages 'Login.jspx' and 'welcome.jsf '.
    What I have to do is, I need to pass 'user_id' from loin successful by 'Login.jspx' to 'welcome.jsf '.
    Then "welcome.jsf" will search the relevant data for this 'user_id '.

    I've already created a page "welcome.jsf" and query looks like in ' Select value1, vale2,... FROM table_name where UserId =: user_id;

    How can I pass this value 'user_id '?

    Thank you.

    Use #{securityContext.userName} if you are already connected to get the user name in the ADF

  • Passing parameters in URL

    Hello

    Bit of a newbie here question.

    I am passing the parameter via URL:

    ? IMG = study_1_img

    In the next page, I'll put it as a variable:

    < CFSET image = "#URL.img #" >

    I then ask my DB:

    SELECT #image # FROM [tablename]

    However, when I got out, it returns the value of the variable:

    < CFOUTPUT >
    #image #.
    < / CFOUTPUT >

    What I want is the value of the query, not the variable. What should I do?

    Help would be much appreciated!

    Thank you all; in the end, I went for a different solution, but the solution to my original problem was indeed:

    Thanks a lot for all the help

  • Redirect the URL after login / log out / sign up

    I was just wondering if it is possible to redirect users once they have a) connected in b) connected to or c) recorded?

    If all goes well, logging would return to the page where they were before the connection, disconnection would return to the home page and registration would go to their account details page.

    Anyone know how I can do this?

    Thank you.

    Yes, all those that are feasible.

    Login: something similar with the customization of the Web Forms the parameter is similar

    Disconnect: you will need to add some js to the logout confirmation page to make redirection - Secure system areas related pages

    The login form can be either twisted to redirect to a custom page, or you can set the point of the secure area on the account details page and forget it.

    Here's more information about secure areas - http://docs.businesscatalyst.com/user-manual/secure-zones

    Kind regards

    Mihai

  • How to set fire to a branch to pass parameters without url?

    is it possible to pull a branch when the user clicks on a link on the page. I have a report on a page #2 and one column is 'serialno. When the user clicks on the link, the application needs to go to the page #3 and view the details for the series. However, due to security restrictions, I can't spend the serialno in the url. is it possbile to set the page point serialno page #3 in the branch that directs the user to the #3 page and show the details? any ideas are appreciated.

    Kind regards
    Surya

    Published by: sgodavar on August 13, 2010 16:10

    Hello

    Here's what I think is an easy way to do it.

    1 edit the SERIALNO column in the reports attribute tab
    2. change the target of the link URL column
    3. in the URL, type the line below. #SERIALNO # is the column of the report

    javascript:doSumbit('#SERIALNO#') 
    

    4 write an OnSubit of calculation or process to assign the value of #SERIALNO # to the element in the Page 3 (say P3_ITEM1)

    a. assignment can be: P3_ITEM1: =: APPLICATION; (or SQL)
    b. calculation / condition of process will be the Expression of PL/SQL

        regexp_like(:REQUEST,'^[[:digit:]]).*$') -- all numeric request, no semicolon at end in Apex 4
       
    

    5. creation of a branch of the condition to go to Page 3, with regexp_like above as a condition.

    Here's what will happen.
    a. by clicking on the link of the report will cause a transmission with demand = serialno (supposed to be entirely digital in this example)
    b. trap you and process applications digital all assign them value takes the point on Page3.
    c. branch Page 3 on the same condition of application being digital.

    Above is the basic concept, you can do more complex and flexible using prefixes and suffixes in doSubmit and REGEXP_LIKE to allow multiple links of this type of a report.
    Kind regards

  • Redirection after Login page:

    After connection, the apex goes in 1st page instead of the home page. I had the homepage at page 100.

    Please suggest the solution.

    Yogesh

    Hello

    Is there anything in the custom authentication code that performs a redirection to page 1?

    Andy

  • Pop-up - passing parameters

    I need some help w / pop-up windows and pass parameters in both directions.

    Page 7 (reports page), I have:
    -TXT_P7_SALESREP displays the name of the sales reps selected, by default, all the
    -CMD_P7_PICKSALESREP opens the popup window when you click
    -H_P7_SALESREPIDLIST stores the list of IDS (used to generate the report) currently selected sales rep

    Page 10 (page popup), I have:
    -CBL_P10_SALESREP a list check box, all of the VRP (by name)
    -H_P10_SALESREPIDLIST stores a list of the IDS of representative sales currently selected
    -CMD_P10_OK to submit the changes and close the page
    -CMD_P10_CANCEL to close the window without saving changes (I got this work already through the process of close popup window)

    The process should be something like:
    1) User opens report page, 'All' is displayed in the text box, and H_P7_SALESREPIDLIST contains all the sales rep ids 
    2) User clicks CMD_P7_PICKSALESREP to change list of sales reps 
          2a) Popup window opens & the value of H_P10_SALESREPIDLIST is set to the value of H_P7_SALESREPIDLIST
          2b) CBL_P10_SALESREP has values checked based on the value of H_P10_SALESREPIDLIST (all by default, but a user could change sales reps multiple times)
    3) User makes their changes and hits OK
          3a) Value of H_P10_SALESREPIDLIST is updated w/ list of currently selected sales reps
          3b) Value of H_P7_SALESREPIDLIST is updated w/ the value of H_P10_SALESREPIDLIST
          3c) Popup window is closed, returning the user to the report page
          3d) TXT_P7_SALESREP is updated via the contents of H_P7_SALESREPIDLIST
    4) User runs the report which is processed/displayed based on the values of H_P7_SALESREPIDLIST
    I tried to put some javascript:popupURL('f?p=&APP_ID.:10:&SESSION.::NO::H_P10_SALESREPIDLIST:&H_P7_SALESREPIDLIST'); in the target URL for CMD_P7_PICKSALESREP, but it did not work. I don't know enough about the passage of parameters and APEX-details to implement myself. Any help would be appreciated.

    I prefer this w / do as little javascript as possible coding, but I understand that it may be necessary.

    Hmmmm, this is weird @ no alerts

    Probably a syntax error in the JS (missing order, quote, brackets etc.)?

    CITY

  • Problem with LOGIN_THROTTLE. COUNTER on the login page

    Hello!

    I have the page of connection (desktop, theme 25) which has been slightly modified by me. I use custom_auth on table mine of users.

    Seems I now work "strange."

    Problem seems to be LOGIN_THROTTLE. METER that shows popup but is not low count (it's freezes with numbers to started number).
    As a result, I can't connect even when the correct credentials.

    By comparing your login to app demo and mine the login page, I saw that in my login page is missing the bunch of js:
    function popupSessionInfo(){var w = open("f?p=4000:34:4600637698482:PAGE:NO:34:F4000_P34_SESSION,F4000_P34_FLOW,F4000_P34_PAGE,FB_FLOW_ID:800543776008,21299,101,21299","winLov","Scrollbars=1,resizable=1,width=700,height=450");if (w.opener == null){w.opener = self;}w.focus();}
    function popupViewDebug(){var w = open("f?p=4000:19:4600637698482:::RIR,19:IR_APPLICATION_ID,IR_PAGE_ID:21299,101","winLov","Scrollbars=1,resizable=1,width=700,height=450");if (w.opener == null){w.opener = self;}w.focus();}
    apex.jQuery( document ).ready( function() {
    ...
    until the part that begins with:
     
    Apex.jQuery( document ).ready( function() {
    that is the same. Part missing is obviously part for gas meter.

    I tried all the browser and they are all the same as a result.

    I study more and discovered that mine, State of Session-> page Protection, for login page shows it's 'Dynamic form' not connect type. I'm sure that I edited the origin and after login page found this recreation (remove old and create the new login page) that somehow seems not to be the login page.
    I'm quite confused because before that this one was't of thing happened because before the introduction of "gas" I had no such a mistake... or I wasn't awre of them.
    :-)

    Any help or suggestion?

    Damir Vadas
    http://Damir-vadas.blogspot.com
    Apex 4.2.1.00.08
    Oracle 11.2.0.3 x 64
    Apex listener 2.0.0.354.17.05

    So, you changed the page of connection somehow, perhaps recreate - and now things go wrong?

    Firstly - if you want to authenticate on your own table, it is much easier to leave the single login page and use a custom authentication scheme.

    Second - if you want the user to land on their own page, I find personally much easier to define a branch that manages that decision-making - perhaps something ruled separately during after authentication.

    Scott

  • Navigation after passing parameters to ADF via URL

    How you exit a page after passing parameters via a url as in the method in this link https://blogs.oracle.com/shay/entry/passing_parameters_to_adf_appl?

    I tried to drop this delimited task flow on adfc-config and adding a flow of control to another opinion, but I can't seem to access my opinion of this workflow call.

    In other words, I can call the workflow bounded through a url and pass it a parameter, but once it is posted I can't go to my other point of view.

    How can I do this?

    Thank you

    If you use a wildcard of navigation in the unlimited workflow as shown here https://tompeez.wordpress.com/2013/06/18/jdeveloper-navigation-after-return-from-bounded-task-flow/

    It should work.

    Timo

  • Passing parameters to the URL - availability in the new process of request

    Hello

    I am able to pass parameters in the URL of the APEX that defined the points of the application as below

    : http://application-tier server: port/pls/apexdev/f? p = 1001:1:APP_CLIENT_NUMBER, APPLICATION_NUMBER:0001285, 0000051:

    I would like to get and set other items based on elements of application passed as parameters. I would like to only enter once application.

    I found the best place for this action in a process of application with Point on new Instance of Process.

    The problem seems to be that the value of point of application has not been set at this point, and therefore the values are null.

    If I change the application process process Point to something that runs to each page as On Load: after the header, then the values are available. It is not suitable as only wish to run once at startup of the application.

    I can't find discussion of this documentation.

    1. I would be able to access URL parameters in the application process with Point on a new Instance of the process?

    2. are there any other equivalent task for access to URL parameters at the start of the application?

    Thank you

    Hello

    APEX runs only on the new process Instance when a new session has been set up. As you discovered, URL items are not yet saved in session at this point State. You can use a level app process before header instead, with a condition that makes that make it run when certain elements that you want to initialize are null.

    Kind regards

    Christian

  • Add a customization button - passing parameters to new pag by

    Hi all

    I have a requirement in which I created a new page to display some sort of questionnaire data. For the new page that I created, I must pass two parameters.

    In the transaction page, I created a button, in which I will call the new page. During the call to the new page, I need to pass the parameters. This is the navigation and parameter information to pass.

    Step 1: I open a transaction page. This page will have an element from the drop-down list, which will be the list of values. The user will be selecting a value from the list and click on continue.

    Parameter1: I need the value selected by the user in the drop-down list.

    Step 2: After clicking on continue step 1, it will come to the next page. I have this page I have a nonmodifiable element, which will have the transaction number.

    Parameter 2: I need to enter the transaction number in page 2.

    Custom button: I'll add the button on page 2. When the user clicks on the button, I need to spend "Parameter1" and setting 2.

    I used the code below in the Customizing destination URI.

    {OA.jsp?page=/oracle/apps/eng/changemgmt/webui/SelectChgTypePG;changeOrderType={@DefaultChangeTypeId} & changeOrderNumber={@ChangeNotice} & retainAM = Y & addBreadCrumb = Y

    DefaultChangeTypeId - Is the value of parameter 1. I had this value by clicking on this page, find the element, then its corresponding attribute "view". Same procedure I did for parameter 2 as well.

    http://***.com:8075/OA_HTML/OA.jsp?page=/Oracle/Apps/Eng/changemgmt/WebUI/SelectChgTypePG;changeOrderType= & changeOrderNumber = & retainAM = Y & addBreadCrumb = Y & _ti = 1898732724 & oapc = 36 & oas = WeROkyjSdTok2jUjlcTwqg...

    But in the generated URL, I am unable to see the parameter values. Please help in this. If I missing something, or have need to do another activity to implement.

    Thanks in advance a ton.

    Kind regards
    Rajesh SM.

    Published by: user12097346 on Sep 13, 2010 10:39

    Hello
    did you put the display button instance property. If this isn't the case, the view instance property for your button.

    Kind regards
    Joelle

  • Login page appears no not after cloning.

    Hello

    We have Oracle EBS 12.1.3 with database 10g RAC on RHEL.

    Recently, after cloning, we can not get the login page and the following error message appears: -.

    "Could not generate the redirect URL. "Exception: Oracle.apps.fnd.common.AppsException: oracle.apps.fnd.common.PoolException: Exception creating object that can be aggregated.

    Please guide in problem solving.

    Thanks in advance

    Are there errors in the database log files?

    Please check the files of application log for more information on the error-(Doc ID 1964851.1)

    Please also see (Doc ID 1598680.1) and (Doc ID 1626838.1).

    Thank you

    Hussein

  • EBS R12.1 login page cannot display - after installation

    Hello

    I installed Oracle EBS R12.1 with multi node installation

    Host system: Windows 7

    VMPlaer:

    System1 comments: Database 64 bit OS Oracle Linux 6.7 Vision node

    System2 comments: OS Oracle Linux 64 bit Apps Tier 6.7

    EBS Application installed successfully, and I can see both are rising and running, I can see the login page (no forms) in DB and Apps nodes. And I can connect to the database of customer of db host system, but not able to open the login page to the host system. I checked the version of java and every thing looks fine at the host system, I can open it with other EBS on all issues.

    Based on Metalink notes:

    Solution1: Auto config ran level apps and does not - and file DBC looks good - no problem on the automatic configuration

    Option2: Recompiled from $FND_TOP/patch/115/bin - no JSP compiler error

    My conclusions from host system:

    Apps URL: http://192.168.64.130:8000/OA_HTML/AppsLogin

    When I am trying to open in Internet Explorer:

    This page cannot be displayed

    •Assurez - you have the web address http://192.168.64.130:8000 is correct.

    • Look for the page with your search engine.

    •Refresh page in a few minutes.

    When I am trying to open in Mozila:

    URL changed - which means that he is in communication with the server, something stops

    Mozila:

    http://ebsapps.Oracle:8000/OA_HTML/RF.jsp?function_id=1032925 & resp_id = 1 & resp_appl_id = 1 & security_group_id = 0 & lang_code = US & Params = 6AW2cE1mZ6NDm8Na0RNB9Q

    The connection has expired

    The server to ebsapps.oracle takes too long to respond.

    The site may be temporarily unavailable or too busy. Try again in a few moments.

    If you are unable to load any pages, check your computer's network connection.

    If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

    After delay, issue, I checked in the applications node

    I could see the suite of changes, I don't know I made these changes before installing. Seems to be after the restart apps replaced node network manager the /etc/resolv.conf file.

    / etc/etc/resolv.conf: this cannot be a problem, I think, because I can open the page of connection on the DB node

    options attempts: 5

    options timeout:15

    I'm not sure what could be the problem. Please guide me to solve this problem. Any help will be be appreciated.

    Thank you

    Reddy

    Found the issue,

    Need to ti, consult firewall for host system settings and details added linux host:

    C:\Windows\system32\drivers\etc-

    192.168.64.129 ebsdb.oracle

    192.168.64.130 ebsapps.oracle

    Thank you

    Reddy

  • URL, Cordova, MAF JS API on the Login Page

    We have difficulties to use the framework for a simple use case.

    On our custom log in HTML page, we want to add an anchor linking to our public web server where new users can register online.  All of our application is secure, which means an external URL feature is not an acceptable approach.  We must be able to navigate from the login page, to the registration page and back without using an external URL feature.

    Our first approach was simple.  After you add our domain to the whitelist of applications, we added an anchor with the URL as the HREF link.  (We also tried invoking window.open and setting window.location.href with JS).  If we add a basic anchor to the login page, the display of web pages embedded MAF navigates to our registration page, but there is no Back/fact/Close button.  Users cannot return the liaison, which is unacceptable.

    Rejecting this option so we thought that using the plugin Cordova InAppBrowser would do a better job.

    We tried the initialization of the MAF JS API nothing helps.  The Oracle online documentation shows how to add references to javascript base.js to a custom page of springboard, which allows access to Cordova, Cordova plugins and the API of JS MAF.  This same code doesn't seem to work for a custom login HTML page.  The 'showpagecomplete' event does not fire, and while the structure of the object and the JS API methods are built (adf.mf.api, adf.mf.el, etc.), called methods never call reminders of success or error in what we spend.

    Without the MAF JS API, we cannot access Cordova or the InAppBrowser plugin.  We have tested this plugin on another page AMX, so that we know that it has been installed successfully.  He can do what we need, if we can call it from our login.html page.

    Are we barking the wrong tree?  How can we add a simple link from the log in page, while allowing users to close the loaded HTML page when you're done?

    ENVIRONMENT:

    JDeveloper 12.1.3.1.41

    MAF 2.1.1.0.41

    Xcode 6.2

    10.9.5 OSX

    Early 2011 Macbook Pro

    Post edited by: rsmith248 Miskeyed JDeveloper version number.

    Hello

    Have you considered showing your registration page server side in an iframe?

    It is a simple but powerful technique to remain in the web view of your MAF application with full control over navigation (back).

    Steven Davelaar,

    Oracle Mobile & Cloud A-team.

  • Redirect to the original page after login

    Hello, I'm new in the Fusion of the ADF, I'm trying to get my program to do the redirection, submitted by the user, after logging, page example: otherwise

    the user is connected to the session, and someone is trying to access a path in the browser (... faces/protected/admin/page.js) JAAS (Yes, I use JAAS, JAAS not ADF security, so I tried that before JAA redirect to the login screen, he kept the URL TO which the user has tried to do that when connecting the user to the system, it redirected to this page) not a standard page...

    I tried to recover using this url PhaseListener, filter using the filter applications (/ *) and using the < f: event > someone at - it suggestions?

    OBS: authorization and authentication with JAAS is ok, I wanted to just implement this dynamic redirect

    I create the hidden entrance and a button to test the parameter:

    public class test {}

    @ManagedProperty(value="#{param.from")

    private String

    I don't know if the injection with @ManagedProperty will work.

    So, first make sure that hidden field a correct value (you can check this in the source of the page, or you can add a component any visible...)

    If this value is correct, you can try to evaluate EL inside your connection method with:

    public static String evalAsString(String p_expression){
        FacesContext context = FacesContext.getCurrentInstance();
        ExpressionFactory expressionFactory = context.getApplication().getExpressionFactory();
        ELContext elContext = context.getELContext();
        ValueExpression vex = expressionFactory.createValueExpression(elContext, p_expression, String.class);
        String result = (String) vex.getValue(elContext);
        return result;
    }
    
    and then:
    String from = evalAsString("#{param.from}");
    

    Dario

Maybe you are looking for