<div dir="ltr">Hi,<div><br></div><div>I'm trying to use fusion template to do a simple php program to highlight particular results in the map. I need to get SESSION and MAPNAME in my program and i tried the following code. </div>
<div><br></div><div>CODE</div><div>********</div><div><html></div><div><head></div><div><div><script language="javascript"></div><div>function MyOnLoad ()</div><div>{</div><div>Fusion.initialize(); </div>
<div>var mapWidget =Fusion.getWidgetById('Map'); </div><div>var SESSION = mapWidget.aMaps[0].getSessionID(); </div><div>var MAPNAME = mapWidget.aMaps[0].getMapName(); </div><div>document.form1.SESSION.value=SESSION;</div>
<div>document.form1.MAPNAME.value=MAPNAME;</div><div>}</div><div></script></div></div><div></head></div><div><br></div><div><div><body onload="MyOnLoad()"></div><div><br></div><div><form method="get" action="dharws2.php" name="form1"></div>
<div><input type="hidden" NAME="wstns" value="" id="hwstn" /></div><div><input type="hidden" name="SESSION" value=""/></div><div><input type="hidden" name="MAPNAME" value=""/></div>
<div><br></div><div>Location : </div><div>//php code to retrive data from mysql to a list box.</div><div>/*.</div><div>.</div><div>.</div><div>.</div><div>.*/ </div><div><input type="submit" value="submit"/><br>
</div><div></form></div><div></body></div><div></html></div></div><div><br></div><div><br></div><div>But the problem is that, I get the following <b>ERROR</b> :</div><div><br></div><div><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium"><b>Invalid argument(s): [1] = "" The session ID is invalid because the session separator character was not found. - MgUserInformation.SetMgSessionId() line 212 file c:\mg-2.5-x64\mgdev\common\mapguidecommon\System/UserInformation.cpp</b></span><br>
</div><div><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium"><b><br></b></span></div><div><font color="#000000" face="Times New Roman" size="3"><b>Please help me to find out solution to this problem.</b></font></div>
<div><font color="#000000" face="Times New Roman" size="3"><b><br></b></font></div><div><font color="#000000" face="Times New Roman" size="3"><b>Mapguide Version : 2.5.0.7749</b></font></div><div><font color="#000000" face="Times New Roman" size="3"><b><br>
</b></font></div><div><font color="#000000" face="Times New Roman" size="3">Thanks</font></div><div><font color="#000000" face="Times New Roman" size="3">Jeny</font></div></div>