This discussion is archived
3 Replies Latest reply: Apr 26, 2013 8:02 AM by GavinWoods RSS

how do i know the ssl over non ssl

978485 Newbie
Currently Being Moderated
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 Guru
    Currently Being Moderated
    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 Newbie
    Currently Being Moderated
    Thank yo os much
  • 3. Re: how do i know the ssl over non ssl
    GavinWoods Explorer
    Currently Being Moderated
    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

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points