Re: Cookie is not created why ?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Marina (someone_at_nospam.com)
Date: 08/18/04


Date: Wed, 18 Aug 2004 09:53:00 -0400

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.

"raagz" <raagzcd@yahoo.com> wrote in message
news:e1ee8ab9.0408180524.718b0d79@posting.google.com...
> Hi,
>
> I am trying to create a cookie from the value that is passed through
> the querystring.here is the piece of code.
>
> cookiename and cookiedata are passed through URL.
>
> HttpCookie TISCookie = new HttpCookie(cookieName,cookieData);
> TISCookie.Expires = DateTime.MaxValue;
> Response.Cookies.Add(TISCookie);
>
> but this works fine with localhost i.e URL is
> http://localhost/webform1.aspx
>
> whereas with machine name it does not i.e
> http://p41234/webform1.aspx
>
> The cookie is not at all created.
>
> Thanks
> Raagz



Relevant Pages

  • Re: difference between internal network and internet with cookie
    ... Do you think it works with ASP.Net forms authentication? ... Intranet zone perhaps? ... >>I decide to use forms authentication in my web site. ... I choose not to allow any cookie. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Red Sherrif Cookie Questions
    ... and consider hardening your IE settings by taking advantage of the trusted Web ... Content Zones so that you can set you "internet zone" security to high and also set ... privacy to medium high or high adding your trusted sites to the exempt cookie ... I would also appreciate any tips on better PC security - I ...
    (microsoft.public.win2000.security)
  • Re: Forms Authentication problem:
    ... What are you doing with your forms auth cookies that makes them not work ... Are you issuing the cookie from a domain other than the ... Do your users have cookies disabled completely for the Internet Zone or ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: difference between internal network and internet with cookie
    ... for local intranet. ... I think ASP.NET forms authentication will work if cookies are ... I set cookie to prompt. ...
    (microsoft.public.dotnet.framework.aspnet)