🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.lenguajes.php
Article #74

Re: cookie en firefox

#74
From: ferguez
Date: Tue, 29 Mar 2005 06:16
33 lines
1843 bytes
Mira este es el codigo que funciona en IE pero no en FF.. la cookie 
galleta1 si la crea y la reconoce y ejecuta la validacion despues de
leer una tabla password y nombre de usuario ... sirve para la
validacion a un formulario

<?
if ($stlogin)
  {
   include "config.php";
   $query = mysql_query ("SELECT recID FROM ad3minee WHERE usedername
= '$uid'
   AND password = '$pwd'");
   while ($row = mysql_fetch_array($query))
     {
      if ($row['recID']==$grp45)
        {
         setcookie ("galleta1",$row['recID'],600);
         echo'<META HTTP-EQUIV=Refresh CONTENT="1; URL='.$PHP_SELF.'">
         <A HREF='.$PHP_SELF.'>
         <center><br><br>Registrando tu acceso...</center></a>.';
         exit;
        }
      else {echo "No tienes autorizaci�n"; exit;}
     }
  }
IF ($HTTP_COOKIE_VARS["galleta1"])
  { include  ("inicio.php"); }
else
  {
   include ("index.php");
   exit;
  }
?>
Technical Details
Message-ID: <f7293a87.0503282216.3452b710@posting.google.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!not-for-mail
References: <f7293a87.0503261451.50261084@posting.google.com> <3ao7r8F5r0vlnU1@individual.net>

Show Full Headers
Complete Article Headers
X-Google-Thread: 107579,5b5ed04dcd9fa4e6
X-Google-Thread: fbf50,5b5ed04dcd9fa4e6
X-Google-Attributes: gid107579,gidfbf50,public
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!not-for-mail
From: ferguez5@yahoo.com.mx (ferguez)
Newsgroups: es.comp.lenguajes.php,es.comp.infosistemas.www.paginas-web
Subject: Re: cookie en firefox
Date: 28 Mar 2005 22:16:55 -0800
Organization: http://groups.google.com
Lines: 33
Message-ID: <f7293a87.0503282216.3452b710@posting.google.com>
References: <f7293a87.0503261451.50261084@posting.google.com> <3ao7r8F5r0vlnU1@individual.net>
NNTP-Posting-Host: 201.141.45.228
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1112077015 28629 127.0.0.1 (29 Mar 2005 06:16:55 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 29 Mar 2005 06:16:55 +0000 (UTC)