Re: cookies and php - basics

From: Alvaro G Vicario (alvaro_QUITAR_REMOVE_at_telecomputeronline.com)
Date: 03/22/04


Date: Mon, 22 Mar 2004 10:32:42 +0100


*** deko wrote/escribió (Mon, 22 Mar 2004 07:02:23 GMT):
> This is about the simplest example I could come up with, but for some reason
> (not my browser's settings) it's not working...
>
>
> [top of page]
> <?php
> setcookie($cookie_name, "cookie_content", time()+3600);
> ?>

Please note you never give any value to $cookie_name variable so cookie is
created without any name, just a value.

Set-Cookie: =cookie_content; expires=Mon, 22-Mar-04 10:30:51 GMT

-- 
-- 
-- Álvaro G. Vicario - Burgos, Spain
--


Relevant Pages

  • virtual()
    ... I understand I was using virtualfor the wrong reason and from now on ... include a PHP file all output is lost and browser gets an empty page. ... -- Álvaro G. Vicario - Burgos, Spain ...
    (comp.lang.php)
  • Re: Sid Lowe on Spanish views on Italy
    ... to your clubs performances over the past few years. ... write bad things about Spain, maybe with reason, but you never ... because I see excellent young players sprouting throughout Spain. ... Sevilla is doing it right, ...
    (rec.sport.soccer)
  • Yet another blocked Sudoku
    ... OK somebody told my dad about Sudoku. ... to advance this one 'without guessing'. ... For some reason he thinks I should be ... both 'simplest' and 'non-backtracking'. ...
    (rec.puzzles)
  • Re: Any python scripts to do parallel downloading?
    ... simplest, so I don't see any reason to prefer asynchronous method ... actually there is a reason why I prefer the asynchronous ... Especially since kill -9 does not ...
    (comp.lang.python)
  • Re: Any python scripts to do parallel downloading?
    ... simplest, so I don't see any reason to prefer asynchronous method ... actually there is a reason why I prefer the asynchronous ... Especially since kill -9 does not ...
    (comp.lang.python)