<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV></DIV>
<DIV>Hi,</DIV>
<DIV>&nbsp;</DIV>
<DIV>In the&nbsp;<SPAN class=emphasis>Initialization Script&nbsp;i&nbsp;declare my own variable:</SPAN></DIV>
<DIV><SPAN class=emphasis>..</SPAN></DIV>
<DIV><SPAN class=emphasis>..</SPAN></DIV>
<DIV><SPAN class=emphasis>$oApp-&gt;CWCInitialize( $szTemplate, $szMapFile);<BR>$oApp-&gt;setVar( 'SID', session_id() );<BR>$oApp-&gt;setVar( 'CI', TRUE );</SPAN></DIV>
<DIV><SPAN class=emphasis>...</SPAN></DIV>
<P><SPAN class=emphasis></SPAN>&nbsp;</P>
<P><SPAN class=emphasis>In the template file i can read the SID or CI variable (my own variables):</SPAN></P>
<P><SPAN class=emphasis>[$SID|$]</SPAN></P>
<P><SPAN class=emphasis>[$CI|$]</SPAN></P>
<P>&nbsp;</P>
<P>When i call one php page from template file and i need to read the chameleon session variables i do:</P>
<P>&nbsp;</P>
<P>1-&nbsp;i pass the SID in the url: </P>
<P>&nbsp;&nbsp; <EM>login.phtml?sid=[$SID|$]</EM></P>
<P>2- and&nbsp;i call the chameleon session in the php file (login.phtml):</P>
<P>&nbsp; <EM>&lt;?</EM></P>
<P><EM>&nbsp;&nbsp; include_once("../../chameleon/htdocs/widgets/session.inc.php");<BR>&nbsp;&nbsp; installSessionDirectoryHandler();<BR>&nbsp;&nbsp;&nbsp; initializeSession();</EM></P>
<P><EM>&nbsp;&nbsp; ..</EM></P>
<P><EM>&nbsp;&nbsp; ..</EM></P>
<P><EM>&nbsp; ?&gt;</EM></P>
<P>&nbsp;</P>
<P>Then i can use all chameleon session variables with $_SESSION from&nbsp;(inside) login.phtml :</P>
<P><EM>&lt;?</EM></P>
<P><EM>&nbsp;&nbsp; include_once("../../chameleon/htdocs/widgets/session.inc.php");<BR>&nbsp;&nbsp; installSessionDirectoryHandler();<BR>&nbsp;&nbsp;&nbsp; initializeSession();</EM></P>
<P><EM>&nbsp;&nbsp;&nbsp; //all chameleon variables</EM></P>
<P><EM>&nbsp;&nbsp;&nbsp; print_r ($_SESSION);</EM></P>
<P><EM>&nbsp;&nbsp; //only one chameleon variable</EM></P>
<P><EM>&nbsp;&nbsp;&nbsp; print_r ($_SESSION['gszAppPath']);</EM></P>
<P><EM>?&gt;</EM></P>
<P>&nbsp;</P>
<P>But i need to know how to see my own CI or SID variable inside&nbsp;login.phtml?. This code doesn't work:</P>
<P><EM>&lt;?</EM></P>
<P><EM>&nbsp;&nbsp; include_once("../../chameleon/htdocs/widgets/session.inc.php");<BR>&nbsp;&nbsp; installSessionDirectoryHandler();<BR>&nbsp;&nbsp;&nbsp; initializeSession();</EM></P>
<P><EM>&nbsp;&nbsp; //this doen't work</EM></P>
<P><EM>&nbsp;&nbsp;&nbsp; echo $_SESSION['CI'];</EM></P>
<P><EM>&nbsp;&nbsp; //this doen't work<BR>&nbsp;&nbsp;&nbsp; echo $_GLOBALS['CI'];</EM></P>
<P><EM>&nbsp;&nbsp; //this doen't work</EM></P>
<P><EM>&nbsp;&nbsp;&nbsp; echo $_POST['CI'];</EM></P>
<P><EM>?&gt;</EM></P>
<P><EM>&lt;!--&nbsp;&nbsp;&nbsp; //this doen't work --&gt;</EM></P>
<P><EM>&lt;a href="somewhere.php?sid=[$CI|default$]"&gt;link&lt;/a&gt;</EM></P>
<P>&nbsp;</P>
<P>And this code in the&nbsp;<SPAN class=emphasis>Initialization Script:&nbsp;</SPAN><EM>$oApp-&gt;setVar( 'CI',&nbsp;TRUE );</EM> mean that&nbsp;CI is a session variable?, or is a chameleon session variable? or both?, or none?</P>
<P>&nbsp;</P>
<P>Thanks&nbsp;a lot.</P>
<P>&nbsp;</P>
<P>Alexys </P></div><br>


      <hr size=1><br><font face="Verdana" size="-2">ˇDescubre una nueva forma de obtener respuestas a tus preguntas!<br><a href="http://us.rd.yahoo.com/mail/es/tagline/answers/*http://es.answers.yahoo.com/;_ylc=X3oDMTEzNWwxbTZtBF9TAzIxMTQ3MTQxOTAEc2VjA01haWwEc2xrA3RhZ2xpbmVz">Entra en Yahoo! Respuestas</a>.<br></font></body></html>