Cookie is not created why ?

Discussion in 'ASP .Net' started by raagz, Aug 18, 2004.

  1. raagz

    raagz Guest


    I am trying to create a cookie from the value that is passed through
    the is the piece of code.

    cookiename and cookiedata are passed through URL.

    HttpCookie TISCookie = new HttpCookie(cookieName,cookieData);
    TISCookie.Expires = DateTime.MaxValue;

    but this works fine with localhost i.e URL is

    whereas with machine name it does not i.e

    The cookie is not at all created.

    raagz, Aug 18, 2004
    1. Advertisements

  2. raagz

    Marina Guest

    The browser might have different rules set up for when it accepts cookise.
    It might accept them from the intranet zone, but not from the internet zone.
    Marina, Aug 18, 2004
    1. Advertisements

  3. raagz

    qqq Guest

    IE will always accept cookies from localhost. See Tools/Internet
    Options/Privacy/Advanced. Note that the message says "choose how cookies are
    handled IN THE INTERNET ZONE".

    qqq, Aug 31, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.