3 Replies Latest reply: Apr 26, 2013 10:02 AM by GavinWoods RSS

    how do i know the ssl over non ssl

    978485
      Hello Gurus,

      Your answer is greatly aprreciaied ;

      a)
      https://ebusdockel.9dc.com:243/DockerMasterAJX/services/DockerMaster

      b)
      http://ebusmodel.9dc.com/DockerMasterAJX/services/DockerMaster
      How do to dtermine from the above 2 URLS difference betwenn SSL and non SSL ,your answer is appreciated.
        • 1. Re: how do i know the ssl over non ssl
          InoL
          Not that this has anything to do with Forms, but the difference is:
          http (non secure)
          https (secure)
          • 2. Re: how do i know the ssl over non ssl
            978485
            Thank yo os much
            • 3. Re: how do i know the ssl over non ssl
              GavinWoods
              Hi,

              There is a way within Forms to programmatically tell whether users are in SSL or not - if you're in 11g Forms. You can use the new 11g javascript built-ins to execute javascript. Javascript will pull the URL and return it to as a VARCHAR. Then you can have PL/SQL logic to see if the url contains "https" or "http", then you can execute whatever logic you want.

              The PL/SQL Built-in you want to use is: web.javascript_eval_function

              The javascript command you want to run is: document.location.href

              If you are looking for a way to force users to go to SSL, there are some options you can do with OHS(Oracle HTTP Server) - which comes with the 11g Forms.

              I hope this helps.

              Thank you,

              Gavin
              http://pitss.com/us