<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Courier;
        panose-1:2 7 4 9 2 2 5 2 4 4;}
@font-face
        {font-family:Courier;
        panose-1:2 7 4 9 2 2 5 2 4 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EstiloCorreo17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.comment1
        {mso-style-name:comment1;
        color:#FF8000;}
span.default1
        {mso-style-name:default1;
        color:#0000BB;}
span.keyword1
        {mso-style-name:keyword1;
        color:#007700;}
span.string1
        {mso-style-name:string1;
        color:#DD0000;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor=white lang=ES link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span class=default1><span style='font-size:10.0pt;
font-family:Courier'><?php</span></span><span style='font-size:10.0pt;
font-family:Courier;color:#0000BB'><br>
</span><span class=comment1><span style='font-size:10.0pt;font-family:Courier'>//
El uso de session_register() es considerado obsoleto</span></span><span
style='font-size:10.0pt;font-family:Courier;color:#FF8000'><br>
</span><span class=default1><span style='font-size:10.0pt;font-family:Courier'>$barney
</span></span><span class=keyword1><span style='font-size:10.0pt;font-family:
Courier'>= </span></span><span class=string1><span style='font-size:10.0pt;
font-family:Courier'>"Un dinosaurio grande y violeta."</span></span><span
class=keyword1><span style='font-size:10.0pt;font-family:Courier'>;</span></span><span
style='font-size:10.0pt;font-family:Courier;color:#007700'><br>
</span><span class=default1><span style='font-size:10.0pt;font-family:Courier'>session_register</span></span><span
class=keyword1><span style='font-size:10.0pt;font-family:Courier'>(</span></span><span
class=string1><span style='font-size:10.0pt;font-family:Courier'>"barney"</span></span><span
class=keyword1><span style='font-size:10.0pt;font-family:Courier'>);</span></span><span
style='font-size:10.0pt;font-family:Courier;color:#007700'><br>
<br>
</span><span class=comment1><span style='font-size:10.0pt;font-family:Courier'>//
Se prefiere el uso de $_SESSION, a partir de PHP 4.1.0</span></span><span
style='font-size:10.0pt;font-family:Courier;color:#FF8000'><br>
</span><span class=default1><span style='font-size:10.0pt;font-family:Courier'>$_SESSION</span></span><span
class=keyword1><span style='font-size:10.0pt;font-family:Courier'>[</span></span><span
class=string1><span style='font-size:10.0pt;font-family:Courier'>"zim"</span></span><span
class=keyword1><span style='font-size:10.0pt;font-family:Courier'>] = </span></span><span
class=string1><span style='font-size:10.0pt;font-family:Courier'>"Un
invasor de otro planeta."</span></span><span class=keyword1><span
style='font-size:10.0pt;font-family:Courier'>;</span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>-------------------------------------<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Rene Lagos Ingenieros Asoc.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>-------------------------------------<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Juan Andrés Ramírez A.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Linux Counter: 288133<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> _<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> (o< zzz <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> //\ <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> V_/_ Debian<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>-------------------------------------<o:p></o:p></span></p>
</div>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
php-bounces@listas.inf.utfsm.cl [mailto:php-bounces@listas.inf.utfsm.cl] <b>En
nombre de </b>corona<br>
<b>Enviado el:</b> Lunes, 02 de Abril de 2007 18:27<br>
<b>Para:</b> php@listas.inf.utfsm.cl<br>
<b>Asunto:</b> sobre sesiones(2)<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>HI
lista</span><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>en
una page tengo:</span><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><?php
<br>
session_start(); //Iniciar la sesion<br>
if (!session_is_registered('invitado')) <br>
session_register("invitado"); <br>
?></span><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>y
en otra quiero imprimir la variable de sesion pero no lo hace ¿Que esta mal?</span><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>la
page siguiente contiene:</span><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><?php <br>
session_start(); <br>
echo $_SESSION["invitado"];<br>
?></span><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>help</span><o:p></o:p></p>
</div>
</div>
</body>
</html>