Hi Jeremy,<br><br>I don't know if you have solved this yet. I came across your post while researching another session problem I'm having.<br><br>In our popup pages (essentially the same as non-chameleon pages), you must pass the session id (sid=xxx) in the url to the page, and then before you call on the
session.inc.php you need to define LOAD_SESSION if not already done.<br><br>Here is a snippit from the top of one of my popup pages..<br><span style="font-family: courier new,monospace;"><?php</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">if ( !defined( "LOAD_MAPSESSION" ) ) {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> define("LOAD_MAPSESSION", 1);
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">}</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
//language file for a widget (outdated as of 2.4)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">$szLanguageResource = str_replace("\\","/",dirname(__FIL
</span><span style="font-family: courier new,monospace;">E__))."/<widgetname>.dbf";</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
include_o</span><span style="font-family: courier new,monospace;">nce("../session.inc.php");</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">include</span>
<span style="font-family: courier new,monospace;">_once("../CWC2ButtonCache.php");</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
/</span><span style="font-family: courier new,monospace;">/...etc</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">?></span><br><br>Hope this helps you out!<br><br>
Cheers,<br><br>Liz<br><br>On 3/28/06, Sears, Jeremy <<a href="mailto:Jeremy.Sears@ccrs.nrcan.gc.ca">Jeremy.Sears@ccrs.nrcan.gc.ca</a>> wrote:<br>> <br>> Hi all,<br>> <br>> Regarding my question about passing session vars around an app, I found the
<br>> following post that seems very relavent:<br>> <a href="http://lists.maptools.org/pipermail/chameleon/2005-March/001972.html">http://lists.maptools.org/pipermail/chameleon/2005-March/001972.html</a><br>> <br>
> Im trying to work with Paul's second suggestion... however Im still not<br>> finding success. Currently I either get no data passed in the session var,<br>> or the "headers already sent..." error.<br>
> <br>> This is the code I have been adding in an attempt to make my other<br>> 'non-chameleon' pages aware of the cham session:<br>> <br>> <?php<br>> include_once("/dir1/dir2/ms4w/apps/chameleon/htdocs/common/session/session.p
<br>> hp");<br>> <br>> installSessionDirectoryHandler();<br>> initializeSession();<br>> ?><br>> <br>> Any suggestions?<br>> <br>> Thanks<br>> Jeremy<br>> <br>> <br>> <br>> -----Original Message-----
<br>> From: Bart van den Eijnden [mailto:<a href="mailto:bartvde@xs4all.nl">bartvde@xs4all.nl</a>]<br>> Sent: March 28, 2006 9:06 AM<br>> To: Sears, Jeremy<br>> Cc: <a href="mailto:chameleon@lists.maptools.org">
chameleon@lists.maptools.org</a><br>> Subject: Re: [Chameleon] chameleon session vars ....<br>> <br>> <br>> I am guessing you need to include Chameleon's session.inc.php script.<br>> <br>> e.g.:<br>>
<br>> include_once("../../../../chameleon/htdocs/widgets/session.inc.php");<br>> <br>> Best regards,<br>> Bart<br>> <br>> > Hi All,<br>> > Im having some problems with session vars in my chameleon app ...
<br>> ><br>> > Basically, it seems that if I set a session var in say a *.phtml file, I<br>> > can<br>> > only acccess that variable from other *.phtml files, or at least only from<br>> > other pages that are directly related to the chameleon app itself...
<br>> > Our application includes pages (php/html) that dont display maps, yet need<br>> > to be aware of the session variables.<br>> > Is there a way to get session variables into these non-chameleon<br>
> > applications?<br>> > It seems that I could likly do this by including some of the widget code,<br>> > however Id prefer not to , if poossible.<br>> ><br>> > Any thoughts?<br>> > Thanks
<br>> > Jeremy<br>> ><br>> > -----Original Message-----<br>> > From: <a href="mailto:chameleon-bounces@lists.maptools.org">chameleon-bounces@lists.maptools.org</a><br>> > [mailto:<a href="mailto:chameleon-bounces@lists.maptools.org">
chameleon-bounces@lists.maptools.org</a>]On Behalf Of Davelaar,<br>> > Hilbert<br>> > Sent: March 28, 2006 8:46 AM<br>> > To: <a href="mailto:chameleon@lists.maptools.org">chameleon@lists.maptools.org</a>
<br>> > Subject: [Chameleon] Change mouse icon for navigation functionality<br>> ><br>> ><br>> > Hi List,<br>> ><br>> >>From a user-friendly point of view: is it possible to change the
<br>> >> appearance<br>> > of the mouse icon for a chameleon application?<br>> ><br>> > What I want is that when the user selects the pan functionality that the<br>> > mouse icon changes to a hand. And when he selects the zoom in button that
<br>> > the mouse icon changes to a zoomin-icon, just like in GIS software. And<br>> > for<br>> > identiy ..., and so on....<br>> ><br>> > It this possible? If so, how?<br>> ><br>> > Regards,
<br>> > Hilbert Davelaar<br>> ><br>> ><br>> ><br>> > _______________________________________________<br>> > Chameleon mailing list<br>> > <a href="mailto:Chameleon@lists.maptools.org">
Chameleon@lists.maptools.org</a><br>> > <a href="http://lists.maptools.org/mailman/listinfo/chameleon">http://lists.maptools.org/mailman/listinfo/chameleon</a><br>> > _______________________________________________
<br>> > Chameleon mailing list<br>> > <a href="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</a><br>> > <a href="http://lists.maptools.org/mailman/listinfo/chameleon">http://lists.maptools.org/mailman/listinfo/chameleon
</a><br>> ><br>> <br>> _______________________________________________<br>> Chameleon mailing list<br>> <a href="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</a><br>> <a href="http://lists.maptools.org/mailman/listinfo/chameleon">
http://lists.maptools.org/mailman/listinfo/chameleon</a><br>> <br>