cookie and session are not created when using a host file instead of DNS

Ask a Question related to ASP, Design and Development.

  1. #1

    Default cookie and session are not created when using a host file instead of DNS

    When I use a host file entry to point to the host header of the site
    that I have created on a Win2k server running IIS5, a cookie is not
    created to hold the session id. The result is that Session_OnStart is
    run every time a page is requested.

    If I set up a DNS entry on the DNS server it all works fine.

    I never noticed this problem before we put in Active Directory so it
    may have something to do with that.

    I have set "allow per session cookies" to promt(under Custom Secrity
    settings in IE) to see if this is being attempted and it is not. So
    the browser is not even trying to create the session cookie when using
    the host file.

    any ideas?
    Andrew Guest

  2. Similar Questions and Discussions

    1. Can't Read Cookie Created by ASP
      How can we read in the contents of a cookie created in ASCII format by an Active Server Page, when ColdFusion is expecting UTF-8 format? Neither...
    2. #25465 [Opn]: Session lost, session.cookie.lifetime
      ID: 25465 User updated by: sam dot houlder at teleperfomance dot no Reported By: sam dot houlder at teleperfomance dot no...
    3. #25465 [NEW]: Session lost, session.cookie.lifetime
      From: sam dot houlder at teleperfomance dot no Operating system: Linux PHP version: 4.3.3 PHP Bug Type: Session related Bug...
    4. authentication cookie vs session cookie
      Hi, What are the differences between authentication and session cookies? In my web.config file, I set the cookieless attribute for the...
    5. Cookie not always created in client
      I have the following login code: private void Login() { string strRole;
  3. #2

    Default Re: cookie and session are not created when using a host file instead of DNS

    What is it that makes you say they aren't created? Are you using the same
    domain name in the hosts file as you are in DNS?

    Ray at work

    "Andrew" <imagines@lineone.net> wrote in message
    news:3674d7be.0308110451.17c3a1b4@posting.google.c om...
    > When I use a host file entry to point to the host header of the site
    > that I have created on a Win2k server running IIS5, a cookie is not
    > created to hold the session id. The result is that Session_OnStart is
    > run every time a page is requested.
    >
    > If I set up a DNS entry on the DNS server it all works fine.
    >
    > I never noticed this problem before we put in Active Directory so it
    > may have something to do with that.
    >
    > I have set "allow per session cookies" to promt(under Custom Secrity
    > settings in IE) to see if this is being attempted and it is not. So
    > the browser is not even trying to create the session cookie when using
    > the host file.
    >
    > any ideas?

    Ray at 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