Cookie not appearing in Temp Folder

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Paul Charlton-Thomson

    Cookie not appearing in Temp Folder

    Can anyone explain why my cookie is not appearing in the Temporary Internet
    Folder on my PC?

    It sets OK and I can test it put when I go to the folder it's not actually
    there?

    I am using the following code ...

    $cookie_data = $value1 . '#' . $value2;
    setcookie ("mycookie", $cookie_data, $time + 2419200);

    and then ...

    if (isset($_COOKIE['mycookie']))
    {
    $cookie_data = explode("#", $_COOKIE['mycookie']);
    $value1 = $cookie_data[0];
    $value2 = $cookie_data[1];
    }

    Thanks,

    Paul.


  • Alvaro G Vicario

    #2
    Re: Cookie not appearing in Temp Folder

    *** Paul Charlton-Thomson wrote/escribió (Sun, 26 Jun 2005 23:07:19 +0000
    (UTC)):[color=blue]
    > Can anyone explain why my cookie is not appearing in the Temporary Internet
    > Folder on my PC?
    >
    > It sets OK and I can test it put when I go to the folder it's not actually
    > there?[/color]


    Each browser has its own system to store cookies. User doesn't need to care
    about it. Furthermore, if you edit the cookie jar with notepad you'll
    probably spoil it.


    --
    -- Álvaro G. Vicario - Burgos, Spain
    -- http://bits.demogracia.com - Mi sitio sobre programación web
    -- Don't e-mail me your questions, post them to the group
    --

    Comment

    • Tony Marston

      #3
      Re: Cookie not appearing in Temp Folder


      "Alvaro G Vicario" <alvaro_QUITAR_ REMOVE@telecomp uteronline.com> wrote in
      message news:1xd63hi7f2 m5d$.1stf7ewog9 z7b$.dlg@40tude .net...[color=blue]
      > *** Paul Charlton-Thomson wrote/escribió (Sun, 26 Jun 2005 23:07:19 +0000
      > (UTC)):[color=green]
      >> Can anyone explain why my cookie is not appearing in the Temporary
      >> Internet
      >> Folder on my PC?
      >>
      >> It sets OK and I can test it put when I go to the folder it's not
      >> actually
      >> there?[/color]
      >
      >
      > Each browser has its own system to store cookies. User doesn't need to
      > care
      > about it. Furthermore, if you edit the cookie jar with notepad you'll
      > probably spoil it.[/color]

      If the cookie is defined as session temporary then most browsers will not
      bother writing it to disk, it will stay in memory until the session ends.

      --
      Tony Marston

      This is Tony Marston's web site, containing personal information plus pages devoted to the Uniface 4GL development language, XML and XSL, PHP and MySQL, and a bit of COBOL




      Comment

      Working...