Professional Web Applications Themes

How do you get a seperate client process to talk to ASP.NET App - ASP.NET General

I've logged into an ASP.Net server through my browser. My browser runs an activex control. The activex control starts an activex EXE that needs to communicate to the server. The problem is when the activex EXE tries to talk to the server, the server redirects the request to the log in page. I'm using basic ASP.NET authentication on the server. The question is, how do you get a client process to imposter as the original browser process so that the server thinks it is logged in? The client software needs to run outside of .NET. Thanks, -Greg Liles *** Sent ...

  1. #1

    Default How do you get a seperate client process to talk to ASP.NET App

    I've logged into an ASP.Net server through my browser. My browser runs
    an activex control. The activex control starts an activex EXE that needs
    to communicate to the server.

    The problem is when the activex EXE tries to talk to the server, the
    server redirects the request to the log in page. I'm using basic ASP.NET
    authentication on the server.

    The question is, how do you get a client process to imposter as the
    original browser process so that the server thinks it is logged in? The
    client software needs to run outside of .NET.

    Thanks,

    -Greg Liles



    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
    Greg Guest

  2. #2

    Default Re: How do you get a seperate client process to talk to ASP.NET App

    "Greg Liles" <us> wrote in message
    news:phx.gbl... 

    If you're using Forms Authentication, then your client will need to send the
    same Forms Authentication cookie as the browser would.
    --
    John Saunders
    Internet Engineer
    com


    John Guest

  3. #3

    Default Re: How do you get a seperate client process to talk to ASP.NET App


    OK, I tried that. At least I think I tried that.

    What I did was add a header sent back to the server that has my
    authentication cookie information. The header looks like this:

    Cookie: ASP.NET_SessionId=51w0nt55lompdn55sxzf4t45;
    login=7BA0D2CD1686AAA9E00E393B709628808572D38131D3 4132838BB2888190B757B3
    04451E9C5EFC99EB7A15159F90E02AB16C6C50FD5D6DA54C28 E47A712DBA6BD8A2DF89E2
    828150

    I verified that the header was indeeed sent back using an HTTP sniffer.

    However, the server still denies the new process access. I still get the
    login screen.

    Am I doing something wrong in sending the cookie?

    -Greg Liles


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
    Greg Guest

  4. #4

    Default Re: How do you get a seperate client process to talk to ASP.NET App

    "Greg Liles" <us> wrote in message
    news:phx.gbl... 

    Not as far as I can see. I'd add some code to the login page to display the
    Cookies collection in order to confirm which cookies get there. And I'd add
    a "foo=bar" cookie just to test.

    I don't know whether it will be an issue that you're trying to use the same
    session ID when you're using a different connection.

    I also don't know whether the encryption of the Forms Authentication cookie
    is dependant on the session.
    --
    John Saunders
    Internet Engineer
    com


    John Guest

Similar Threads

  1. Flash Webcam client <-> client (not client <-> server<-> client)
    By bivald in forum Macromedia Flash Flashcom
    Replies: 0
    Last Post: April 24th, 10:33 PM
  2. Replies: 1
    Last Post: February 3rd, 09:30 AM
  3. Replies: 22
    Last Post: December 8th, 03:59 PM
  4. Replies: 2
    Last Post: October 10th, 07:20 AM
  5. Replies: 0
    Last Post: July 31st, 12:11 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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