Request.Cookies.Get[] VS Request.Cookies

Discussion in '.NET' started by mhshpk, Jul 18, 2007.

  1. mhshpk

    mhshpk

    Joined:
    Jul 12, 2007
    Messages:
    6
    if(Request.Cookies.Get("LOGINID")!=null)
    throws nullreferenceexception

    while

    if (Request.Cookies["LOGINID"] !=null)
    works fine
    any ideas?
    mhshpk, Jul 18, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alex Nitulescu

    Response.Cookies vs Request.Cookies

    Alex Nitulescu, Feb 3, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    8,444
    Hans Kesting
    Feb 3, 2005
  2. user
    Replies:
    3
    Views:
    642
    =?ISO-8859-1?Q?G=F6ran_Andersson?=
    Mar 31, 2007
  3. Eric
    Replies:
    1
    Views:
    2,047
    Mark Fitzpatrick
    Dec 28, 2007
  4. _Who
    Replies:
    7
    Views:
    2,617
  5. Cal Who

    Response.cookies vs Request.cookies

    Cal Who, Dec 5, 2009, in forum: ASP .Net
    Replies:
    7
    Views:
    1,475
    Gregory A. Beamer
    Dec 10, 2009
Loading...

Share This Page