Agent Desktop

Get Involved. Join the Conversation.

Topic

    Shiloh Madsen
    Session/Cookie handling in Browser ControlsAnswered
    Topic posted January 8, 2019 by Shiloh MadsenBronze Trophy: 5,000+ Points 
    22 Views, 5 Comments
    Title:
    Session/Cookie handling in Browser Controls
    Summary:
    Trying to use PTA Google Authentication to get at other sites
    Content:

    While the specific venue shouldn't matter, just so its here, we have a webapp that checks to see if the user is authenticated to google for domains before allowing profile based access to the applicataion functionality. This works fine standalone, but will not work when embedded in a browser control. My assumption is that some cookie or session is trying to be set by the app and the browser control isn't handling for it, but I see in Ryan's post from way back in 08 that the control should have no problem handling authentication. Would anyone be able to provide insight into if this method of session based authentication through a third party should work? 

    Additionally, if we can even get the auth running, is it reasonable to assume that further calls to the browser control in other workspace instances will be able to reference these same cookies/session vars, or are they destroyed when the record containing the control is closed?

    Best Comment

    Sebastiaan Draaisma

    While I believe it handles cookies, you may be interested in this article.

    Browser control doesn't show full functionality of webpage

    The Browser Control is not a full feature browser. It is a .NET Browser Control.  By default, it renders all pages as Internet Explorer (IE) 7. Also, with IE 11 emulation turned on, a .NET Browser Control is not full-featured.  In some cases, certain browser code will be incompatible with Browser Control so you may see different behavior through the Browser Control than you would see when viewing the webpage directly in a browser.

    Comment

     

    • Sebastiaan Draaisma

      While I believe it handles cookies, you may be interested in this article.

      Browser control doesn't show full functionality of webpage

      The Browser Control is not a full feature browser. It is a .NET Browser Control.  By default, it renders all pages as Internet Explorer (IE) 7. Also, with IE 11 emulation turned on, a .NET Browser Control is not full-featured.  In some cases, certain browser code will be incompatible with Browser Control so you may see different behavior through the Browser Control than you would see when viewing the webpage directly in a browser.

    • Shiloh Madsen

      Accidentally selected choose as best answer instead of replying. I saw that article too, however it doesn't really indicate an answer one way or the other. Upshot is that this link isn't working in the browser control despite working elsewhere. Not sure if its a cookie based issue or not. 

      • Sebastiaan Draaisma

        Sorry about that..

        I used the following url in abrowser control (a cookie test site I found on Google)
        http://www.html-kit.com/tools/cookietester/

        I tested the cookie behavior. The BC is able to store a cookie which is persisant. I performed the following steps:

        1. Created a cookie through the BC
        2. Closed the incident
        3. Restarted OSVC
        4. Opened the incident

        The cookie was still there. So your problem is most likely not related to cookies.