Questions on HttpContext

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

  1. #1

    Default Questions on HttpContext

    Hello ALL!


    It is known that there's a HttpContext class in dotnet
    framework which provides variable sharing.

    I have two questions that i can not get answered in
    the SDK. Anyone can be kind enough to tell me the answer?

    1. Do variables (Name-Value pairs) in HttpContext travel
    between server and client? (i think they don't, right?
    If they do, are they encrypted?)

    2. How long can the variables hold then (the lifetime)?


    w. jORDAN Guest

  2. Similar Questions and Discussions

    1. using HttpContext Class
      I'm trying to get the PathInfo propert for the current URL request in a class file, but I can't get it to work. Here's what I've tried so far: ...
    2. httpcontext HELP
      The issue is that I want to maintain the login without asking the user to login back to the application in case the session times out.....and how do...
    3. HttpContext
      Hello, i searched 2days for a solution and maybe someone can help me. I'm programmin' a C# Assemblie and don't know which class I should use...
    4. HttpContext items and one-way methods
      Hi, I try to put some custom objects into HttpContext.Current.Items collection in one-way webmethod, but they seem not to be there in another...
    5. HttpContext.Current
      Now how in the wolrd does that work? How does it know that some static method I called on some library was called by a page that had that context?...
  3. #2

    Default Re: Questions on HttpContext

    Kevin,

    Hmmm, now I am in the know.
    Thank you for your help!
    :)
    Jordan

    "Kevin Spencer" <kevin@SPAMMERSSUCKtakempis.com> Wrote in news
    news:OL54JOxPDHA.1624@tk2msftngp13.phx.gbl...
    > > 1. Do variables (Name-Value pairs) in HttpContext travel
    > > between server and client? (i think they don't, right?
    > > If they do, are they encrypted?)
    >
    > HttpContext is purely server-side. It is created when IIS passes the
    Request
    > to the ASP.Net ISAPI. The ASP.Net ISAPI creates the HttpContext object and
    > passes it to the Handler for the request, which is typically an ASP.Net
    page
    > class.
    >
    > > 2. How long can the variables hold then (the lifetime)?
    >
    > The lifetime of the HttpContext is from the beginning of the Request to
    the
    > ending of the Response. In other words, very short.
    >
    > HTH,
    >
    > Kevin Spencer
    > Microsoft FrontPage MVP
    > Internet Developer
    > [url]http://www.takempis.com[/url]
    > Big things are made up of
    > lots of Little things.
    >
    > "w. jORDAN" <wmjordan@163.com> wrote in message
    > news:%235IVtkqPDHA.2476@TK2MSFTNGP10.phx.gbl...
    > > Hello ALL!
    > >
    > >
    > > It is known that there's a HttpContext class in dotnet
    > > framework which provides variable sharing.
    > >
    > > I have two questions that i can not get answered in
    > > the SDK. Anyone can be kind enough to tell me the answer?
    > >
    > > 1. Do variables (Name-Value pairs) in HttpContext travel
    > > between server and client? (i think they don't, right?
    > > If they do, are they encrypted?)
    > >
    > > 2. How long can the variables hold then (the lifetime)?
    > >
    > >
    >
    >

    w. jORDAN 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