Cookies set one time, I delete cookie, cookie is never set again!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Phil Powell

    Cookies set one time, I delete cookie, cookie is never set again!

    I am having this problem: My PHP script will set a cookie, it's there in my
    /Cookies folder. I delete the cookie (I have to for testing purposes, the
    PHP script I run behaves according to this cookie existing or not) and run
    the script again. Everything runs fine, but the cookie is never set again.

    Does anyone know why this happens? I am using Win2000 Professional with IE
    6. Cookies are being set with PHP and Javascript.

    Thanx
    Phil


  • Janwillem Borleffs

    #2
    Re: Cookies set one time, I delete cookie, cookie is never set again!


    "Phil Powell" <soazine@erols. com> schreef in bericht
    news:JhO5b.1132 97$xf.17876@lak eread04...[color=blue]
    >
    > Does anyone know why this happens? I am using Win2000 Professional with[/color]
    IE[color=blue]
    > 6. Cookies are being set with PHP and Javascript.
    >[/color]

    Try deleting the cookie with the expires argument set to a date in the past
    and look what happens then.

    JW



    Comment

    • Pedro

      #3
      Re: Cookies set one time, I delete cookie, cookie is never set again!

      [this post was not crossposted -- feel free to forward it]

      Janwillem Borleffs wrote:[color=blue]
      >
      >"Phil Powell" <soazine@erols. com> schreef in bericht
      >news:JhO5b.113 297$xf.17876@la keread04...[color=green]
      >>
      >> Does anyone know why this happens? I am using Win2000 Professional with[/color]
      >IE[color=green]
      >> 6. Cookies are being set with PHP and Javascript.
      >>[/color]
      >
      >Try deleting the cookie with the expires argument set to a date in the past
      >and look what happens then.[/color]

      Or, everytime you delete the cookie, reboot :)

      --
      "Yes, I'm positive."
      "Are you sure?"
      "Help, somebody has stolen one of my electrons!"
      Two atoms are talking:

      Comment

      • Phil Powell

        #4
        Re: Cookies set one time, I delete cookie, cookie is never set again!

        I did that. Cookie was STILL being referenced by the browser even though I
        deleted it and rebooted my computer.

        Figure that one out!

        Phil

        "Pedro" <hexkid@hotpop. com> wrote in message
        news:57iflvgjf7 8dcjfbbu7k258j0 mhfl1tc5t@4ax.c om...[color=blue]
        > [this post was not crossposted -- feel free to forward it]
        >
        > Janwillem Borleffs wrote:[color=green]
        > >
        > >"Phil Powell" <soazine@erols. com> schreef in bericht
        > >news:JhO5b.113 297$xf.17876@la keread04...[color=darkred]
        > >>
        > >> Does anyone know why this happens? I am using Win2000 Professional[/color][/color][/color]
        with[color=blue][color=green]
        > >IE[color=darkred]
        > >> 6. Cookies are being set with PHP and Javascript.
        > >>[/color]
        > >
        > >Try deleting the cookie with the expires argument set to a date in the[/color][/color]
        past[color=blue][color=green]
        > >and look what happens then.[/color]
        >
        > Or, everytime you delete the cookie, reboot :)
        >
        > --
        > "Yes, I'm positive."
        > "Are you sure?"
        > "Help, somebody has stolen one of my electrons!"
        > Two atoms are talking:[/color]


        Comment

        • hexkid

          #5
          Re: Cookies set one time, I delete cookie, cookie is never set again!

          Phil Powell wrote...[color=blue]
          > I did that. Cookie was STILL being referenced by the browser even though I
          > deleted it and rebooted my computer.
          >
          > Figure that one out![/color]

          It worked for me (I rarely use IE). I went to google
          (advanced_searc h), set my preferences to show 50 results, closed the
          browser.

          Reopened the browser, called google (advanced_searc h) and there it
          was: the 50 results setting.
          Closed my browser again.

          In C:\Documents and Settings\Pedro\ Cookies I had a file named
          something like
          pedro@google[1].txt
          I deleted it, reopened the browser, went to google (advanced_searc h)
          and the results drop down was back to 10 results!


          HTH

          Comment

          • Grant Wagner

            #6
            Re: Cookies set one time, I delete cookie, cookie is never set again!

            Phil Powell wrote:
            [color=blue]
            > I am having this problem: My PHP script will set a cookie, it's there in my
            > /Cookies folder. I delete the cookie (I have to for testing purposes, the
            > PHP script I run behaves according to this cookie existing or not) and run
            > the script again. Everything runs fine, but the cookie is never set again.
            >
            > Does anyone know why this happens? I am using Win2000 Professional with IE
            > 6. Cookies are being set with PHP and Javascript.
            >
            > Thanx
            > Phil[/color]

            This isn't really a JavaScript question, and you haven't provided a lot of
            details, but my first guess is that IE keeps a copy of cookies received during
            a session (the time the app is running to the time it is shut down) in memory.
            As a result, deleting the cookie from disk doesn't change IE's opinion that it
            already has a copy of the cookie and does not need to write another to disk.

            My first suggestion would be to close IE, delete the cookie, then start IE
            again.

            --
            | Grant Wagner <gwagner@agrico reunited.com>

            * Client-side Javascript and Netscape 4 DOM Reference available at:
            *


            * Internet Explorer DOM Reference available at:
            *
            Gain technical skills through documentation and training, earn certifications and connect with the community


            * Netscape 6/7 DOM Reference available at:
            * http://www.mozilla.org/docs/dom/domref/
            * Tips for upgrading JavaScript for Netscape 7 / Mozilla
            * http://www.mozilla.org/docs/web-deve...upgrade_2.html


            Comment

            • Phil Powell

              #7
              Re: Cookies set one time, I delete cookie, cookie is never set again!

              Did just what you said, but the cookie somehow still persists, and now for
              some even more weird reason, seems to persist on others machines that have
              never even visited the site (much less set the cookie!)

              Phil

              "hexkid" <hexkid@hotpop. com> wrote in message
              news:da59b90c.0 309050327.ace30 15@posting.goog le.com...[color=blue]
              > Phil Powell wrote...[color=green]
              > > I did that. Cookie was STILL being referenced by the browser even[/color][/color]
              though I[color=blue][color=green]
              > > deleted it and rebooted my computer.
              > >
              > > Figure that one out![/color]
              >
              > It worked for me (I rarely use IE). I went to google
              > (advanced_searc h), set my preferences to show 50 results, closed the
              > browser.
              >
              > Reopened the browser, called google (advanced_searc h) and there it
              > was: the 50 results setting.
              > Closed my browser again.
              >
              > In C:\Documents and Settings\Pedro\ Cookies I had a file named
              > something like
              > pedro@google[1].txt
              > I deleted it, reopened the browser, went to google (advanced_searc h)
              > and the results drop down was back to 10 results!
              >
              >
              > HTH[/color]


              Comment

              • Pedro

                #8
                Re: Cookies set one time, I delete cookie, cookie is never set again!

                Phil Powell wrote:[color=blue]
                >Did just what you said, but the cookie somehow still persists, and now for
                >some even more weird reason, seems to persist on others machines that have
                >never even visited the site (much less set the cookie!)
                >
                >Phil[/color]

                hmmm ... some proxy between you and the server is misbehaving (and
                keeping and sending cookies)?

                --
                "Yes, I'm positive."
                "Are you sure?"
                "Help, somebody has stolen one of my electrons!"
                Two atoms are talking:

                Comment

                Working...