Sharing ASPAUTH cookie between IE and a hosted Windows Form Control

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Sharing ASPAUTH cookie between IE and a hosted Windows Form Control

    Hello everyone,

    I have a situation where I am hosting a windows forms based control on a web
    page in IE. Because the windows forms app uses web services to get and set
    data on the server I need to make sure that it has a secure context in which
    to talk to the sever. What I am doing now is using a PARAM tag to pass the
    user's .ASPXAUTH cookie to the windows forms app. Once the Window forms app
    receives this cookie it then adds it to the CookieContainer in the
    webservice proxy object and from there on out the windows forms app shares
    the user's session with IE.

    All this seems to work well, except for when a user uses the windows forms
    app for a period longer than the time out on the cookie. In such a case it
    is my assumption that the windows forms app may cause ASP.NET to issue a new
    ..ASPXAUTH cookie there by making IE redirect to the login page as soon as
    the user attempts to navigate to a new page.

    In my tests this has never happend, but I want a confirmation of my
    assumption: will ASP.NET change the value of the .ASPXAUTH cookie so long
    as it continues to receive requests (via IE or the windows forms app) in
    intervals shorter than the cookie's timeout.

    Thanks
    Wells Caughey


    Wells Caughey Guest

  2. Similar Questions and Discussions

    1. add a control box or Windows Form to Acrobat
      Is there a way to add a control box or Windows Form to collect and amend document metadata of our own design. I am looking to add this to Acrobat...
    2. Issue using CDO and ASP when hosted from a Windows Server 2003 box
      Hello. I have a function, code below, that I use to send email in ASP via the CDO object. The username and password to the SMTP server are...
    3. IE hosted strong named control
      Hi I am trying to make user control which is to be hosted in IE. The control is inteneded to digitally sign XML with signedXml.ComputeSignature()...
    4. Windows form control on Web page
      VB.NET ASP.NET Does anyone know how to embed a windows forms control on a web page in the same way that you could do active x objects in asp ...
    5. Passing Parameters to Windows Form Control FROM IE
      Hi All, I have developed a windows forms user control, which I am going to host in Internet Explorer.. I am familiar with the security settings...
  3. #2

    Default Re: Sharing ASPAUTH cookie between IE and a hosted Windows Form Control

    Hmm, nevermind... It turns out I had a major bug in my authentication logic
    and I'll just have to find another way to do this.

    Wells

    "Wells Caughey" <wellscaughey@hotmail.com> wrote in message
    news:%23PLgL$ceEHA.720@TK2MSFTNGP11.phx.gbl...
    > Hello everyone,
    >
    > I have a situation where I am hosting a windows forms based control on a
    web
    > page in IE. Because the windows forms app uses web services to get and
    set
    > data on the server I need to make sure that it has a secure context in
    which
    > to talk to the sever. What I am doing now is using a PARAM tag to pass
    the
    > user's .ASPXAUTH cookie to the windows forms app. Once the Window forms
    app
    > receives this cookie it then adds it to the CookieContainer in the
    > webservice proxy object and from there on out the windows forms app shares
    > the user's session with IE.
    >
    > All this seems to work well, except for when a user uses the windows forms
    > app for a period longer than the time out on the cookie. In such a case
    it
    > is my assumption that the windows forms app may cause ASP.NET to issue a
    new
    > .ASPXAUTH cookie there by making IE redirect to the login page as soon as
    > the user attempts to navigate to a new page.
    >
    > In my tests this has never happend, but I want a confirmation of my
    > assumption: will ASP.NET change the value of the .ASPXAUTH cookie so long
    > as it continues to receive requests (via IE or the windows forms app) in
    > intervals shorter than the cookie's timeout.
    >
    > Thanks
    > Wells Caughey
    >
    >

    Wells Caughey Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139