<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> </DIV>
<DIV>In the <SPAN class=emphasis>Initialization Script i declare my own variable:</SPAN></DIV>
<DIV><SPAN class=emphasis>..</SPAN></DIV>
<DIV><SPAN class=emphasis>..</SPAN></DIV>
<DIV><SPAN class=emphasis>$oApp->CWCInitialize( $szTemplate, $szMapFile);<BR>$oApp->setVar( 'SID', session_id() );<BR>$oApp->setVar( 'CI', TRUE );</SPAN></DIV>
<DIV><SPAN class=emphasis>...</SPAN></DIV>
<P><SPAN class=emphasis></SPAN> </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> </P>
<P>When i call one php page from template file and i need to read the chameleon session variables i do:</P>
<P> </P>
<P>1- i pass the SID in the url: </P>
<P> <EM>login.phtml?sid=[$SID|$]</EM></P>
<P>2- and i call the chameleon session in the php file (login.phtml):</P>
<P> <EM><?</EM></P>
<P><EM> include_once("../../chameleon/htdocs/widgets/session.inc.php");<BR> installSessionDirectoryHandler();<BR> initializeSession();</EM></P>
<P><EM> ..</EM></P>
<P><EM> ..</EM></P>
<P><EM> ?></EM></P>
<P> </P>
<P>Then i can use all chameleon session variables with $_SESSION from (inside) login.phtml :</P>
<P><EM><?</EM></P>
<P><EM> include_once("../../chameleon/htdocs/widgets/session.inc.php");<BR> installSessionDirectoryHandler();<BR> initializeSession();</EM></P>
<P><EM> //all chameleon variables</EM></P>
<P><EM> print_r ($_SESSION);</EM></P>
<P><EM> //only one chameleon variable</EM></P>
<P><EM> print_r ($_SESSION['gszAppPath']);</EM></P>
<P><EM>?></EM></P>
<P> </P>
<P>But i need to know how to see my own CI or SID variable inside login.phtml?. This code doesn't work:</P>
<P><EM><?</EM></P>
<P><EM> include_once("../../chameleon/htdocs/widgets/session.inc.php");<BR> installSessionDirectoryHandler();<BR> initializeSession();</EM></P>
<P><EM> //this doen't work</EM></P>
<P><EM> echo $_SESSION['CI'];</EM></P>
<P><EM> //this doen't work<BR> echo $_GLOBALS['CI'];</EM></P>
<P><EM> //this doen't work</EM></P>
<P><EM> echo $_POST['CI'];</EM></P>
<P><EM>?></EM></P>
<P><EM><!-- //this doen't work --></EM></P>
<P><EM><a href="somewhere.php?sid=[$CI|default$]">link</a></EM></P>
<P> </P>
<P>And this code in the <SPAN class=emphasis>Initialization Script: </SPAN><EM>$oApp->setVar( 'CI', TRUE );</EM> mean that CI is a session variable?, or is a chameleon session variable? or both?, or none?</P>
<P> </P>
<P>Thanks a lot.</P>
<P> </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>