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

  1. #1

    Default Re: Cookie problem

    I like cookies, you can send me some


    "Onur Bozkurt" <onur.bozkurt@softhome.net> wrote in message
    news:eC9xJP7PDHA.1624@tk2msftngp13.phx.gbl...
    > Can anyone say what's the problem in the code...? I can't send cookies..
    >
    > Dim Cook As New HttpCookie("HemenTeknoloji", txtAdSoyad.Text)
    >
    > Cook.Expires = "01.01.2005"
    >
    > Cook.Domain = "hementeknoloji.com"
    >
    > Cook.Name = "HemenTeknoloji"
    >
    > Cook.Values.Add("MAdSoyad", txtAdSoyad.Text)
    >
    > Response.AppendCookie(Cook)
    >
    > Response.Redirect("Default.aspx")
    >
    >
    >

    Chance Hopkins Guest

  2. Similar Questions and Discussions

    1. Cookie Problem -Please Help
      Hello Everyone, I have a little problem. I want to create a cookie and if the user deciced to close the browser, I want that cookie deleted...
    2. PHP Cookie Problem
      Hi guys, I've got a section of my site where I've integrated a rating script. Seems to work okay expect what I've noticed is that with the...
    3. Cookie and domain problem
      hi, guys my website is on server say servera. i have a website on serverb now servera and serverb are on different domians... if serverb...
    4. problem with cookie
      Jose wrote: i may be wrong on this, but i would be surprised if a cookie's key is allowed to have the apostrophe character in it. Check your...
    5. Problem with IE and Cookie
      Hi Friends, I created a cgi program which make use of the cookies to check user authentication. And for creating cookies i make use of...
  3. #2

    Default Cookie problem

    I am having an issue with cookies and a website that uses
    both asp and asp.net. When a cookie is created by asp.net
    and the value is set by asp.net and the value then changed
    by a classic asp page an asp.net page cannot set a new
    value for these cookies. No errors are thrown.

    The following is how the cookie is initially set in
    asp.net as well as it is attempted to be altered.

    this.Response.Cookies["Addendum"].Values["ID"] = "0";
    any insight would be appreciated.
    Christian Guest

  4. #3

    Default cookie problem

    I got several forms on the intranet that require login + some cookie.
    I created a central login page with "HTTP_REFERER" so it
    redirects the user back to the currect page with a cookie setup.
    The redirect works fine, the problem is that the cookie doesn't get set.
    If the login is within the same foldre as the form, there is no problem,
    but then i can't have a central location for the login.
    here is my cookie.

    Name = rcset("Firstname")
    Response.Cookies("som_userName")=(name)
    Response.Cookies("som_userName").Expires = Date + 5

    Thanks in adavanced.
    alexz Guest

  5. #4

    Default Re: cookie problem

    Check in IIS to see if you have any applications defined on subdirectories
    in your site.

    Also make sure that you are not accessing the intranet by computername and
    the computername has an underscore in it. If it does, cane the person who
    named it.

    Ray at work

    "alexz" <alexz33@hotmail.com> wrote in message
    news:43d72b53.0309291152.7d578875@posting.google.c om...
    > I got several forms on the intranet that require login + some cookie.
    > I created a central login page with "HTTP_REFERER" so it
    > redirects the user back to the currect page with a cookie setup.
    > The redirect works fine, the problem is that the cookie doesn't get set.
    > If the login is within the same foldre as the form, there is no problem,
    > but then i can't have a central location for the login.
    > here is my cookie.
    >
    > Name = rcset("Firstname")
    > Response.Cookies("som_userName")=(name)
    > Response.Cookies("som_userName").Expires = Date + 5
    >
    > Thanks in adavanced.

    Ray at Guest

  6. #5

    Default Re: cookie problem

    Ignore what I said about the application thing. I was thinking of session
    variables and what not.

    Ray at work

    "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
    news:uwc5cUshDHA.3700@TK2MSFTNGP11.phx.gbl...
    > Check in IIS to see if you have any applications defined on subdirectories
    > in your site.
    >
    > Also make sure that you are not accessing the intranet by computername and
    > the computername has an underscore in it. If it does, cane the person who
    > named it.
    >
    > Ray at work
    >
    > "alexz" <alexz33@hotmail.com> wrote in message
    > news:43d72b53.0309291152.7d578875@posting.google.c om...
    > > I got several forms on the intranet that require login + some cookie.
    > > I created a central login page with "HTTP_REFERER" so it
    > > redirects the user back to the currect page with a cookie setup.
    > > The redirect works fine, the problem is that the cookie doesn't get set.
    > > If the login is within the same foldre as the form, there is no problem,
    > > but then i can't have a central location for the login.
    > > here is my cookie.
    > >
    > > Name = rcset("Firstname")
    > > Response.Cookies("som_userName")=(name)
    > > Response.Cookies("som_userName").Expires = Date + 5
    > >
    > > Thanks in adavanced.
    >
    >

    Ray at Guest

  7. #6

    Default Re: cookie problem

    article here :

    [url]http://rtfm.atrax.co.uk/infinitemonkeys/articles/asp/910.asp[/url]

    explains the reason.




    ________________________________________
    Atrax. MVP, IIS
    [url]http://rtfm.atrax.co.uk/[/url]

    newsflash : Atrax.Richedit 1.0 now released.
    [url]http://rtfm.atrax.co.uk/infinitemonkeys/components/Atrax.RichEdit/[/url]

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Atrax Guest

  8. #7

    Default Cookie problem


    Start [url]http://212.123.5.17/mb/xdata/am.asp[/url]

    in the left Frame choose N,F or D (Nederlands, French, Deutsch) Not E
    (Standard for English)
    Click GO
    Close your Browser
    Reopen the page. On top you will see the result of the Language Cookie -
    result = N,F or D

    Start [url]http://www.adq.be/ws.htm[/url]
    in the left Frame choose N,F,D (Nedelands, French, Deutsch) Not E (Standard
    for English)
    Click GO
    Close your Browser
    Reopen the page. There is no result for the Language Cookie and the standard
    (E) is selected

    Only difference between the two is that in the second case the first
    ([url]http://212.123.5.17/mb/xdata/am.asp[/url]) is called in an frame of website on
    another domain.

    This is the code to write the cookie
    Response.Cookies("am")("language")=Request.QuerySt ring("language")
    Response.Cookies("am").Expires=date()+30

    this code to read
    Request.Cookies ("am")("language")

    What can be the reason herefore and how o resolve

    Thx - Maarten (Belgium)



    Maarten Guest

  9. #8

    Default Re: Cookie problem

    Maarten wrote on 01 mrt 2004 in microsoft.public.inetserver.asp.db:
    > Only difference between the two is that in the second case the first
    > ([url]http://212.123.5.17/mb/xdata/am.asp[/url]) is called in an frame of website on
    > another domain.
    Already answered elswhere.

    Please do not multipost, Maarten.

    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)
    Evertjan. 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