<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-2" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18904">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Hi all<BR>I wrote a simillar message about a month
ago, and i still don't know how can I use GetSessionID() function in fusion.
<BR>I try to use it like this:<BR><?php<BR>include 'C:\Program
Files\OSGeo\MapGuide\Web\www\mapviewerphp\constants.php';<BR>MgInitializeWebTier('C:\Program
Files\OSGeo\MapGuide\Web\wwww\webconfig.ini');<BR>$site = new
MgSite();<BR>$site->Open(new MgUserInformation("Anonymous",
""));<BR>$sessionId = $site->CreateSession();<BR>$webLayout =
"Library://TEST.WebLayout";<BR>?><BR>...<BR><script type="text/javascript"
src="../../../lib/fusion.js"></script><BR><script
type="text/javascript"
src="../../../layers/MapGuide/MapGuideViewerApi.js"></script><BR><script
type="text/javascript"
src="../../../layers/MapGuide/MapGuide.js"></script><BR>...<BR>window.onload
= function() {<BR> Fusion.initialize();</FONT></DIV>
<DIV><FONT size=2 face=Arial> var mapWidget =
window.top.iFrameMap.Fusion.getWidgetById('Map'); </FONT></DIV>
<DIV><FONT size=2 face=Arial> SESSION =
mapWidget.getSessionID();<BR> MAPNAME =
mapWidget.getMapName(); <BR></FONT><FONT size=2
face=Arial>}<BR>...<BR><div id="Map" style="position: relative; width: 400px;
height: 400px"></div><BR><iframe id="iFrameMap" name="iFrameMap"
width="0%" height="0%" frameborder=0 scrolling="no"
src="/mapguide/mapviewerajax/?SESSION=<?= $sessionId
?>&WEBLAYOUT=<?= $webLayout ?>"></iframe><BR><BR>Can
someone send me a sample aplication that use getSessionID() in Fusion. My email:
<A
href="mailto:fotka18@o2.pl">fotka18@o2.pl</A><BR>Please</FONT></DIV></BODY></HTML>