[mapguide-users] getSessionID() Error in Mapguide Fusion (Version 2.5.0.7749)

Jency v jjen.2007 at gmail.com
Tue Jul 16 22:53:25 PDT 2013


Hi,

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.

CODE
********
<html>
<head>
<script language="javascript">
function MyOnLoad ()
{
Fusion.initialize();
var mapWidget =Fusion.getWidgetById('Map');
var SESSION = mapWidget.aMaps[0].getSessionID();
var MAPNAME = mapWidget.aMaps[0].getMapName();
document.form1.SESSION.value=SESSION;
document.form1.MAPNAME.value=MAPNAME;
}
</script>
</head>

<body onload="MyOnLoad()">

<form method="get" action="dharws2.php" name="form1">
<input type="hidden" NAME="wstns" value="" id="hwstn" />
<input type="hidden" name="SESSION" value=""/>
<input type="hidden" name="MAPNAME" value=""/>

Location :
//php code to retrive data from mysql to a list box.
/*.
.
.
.
.*/
<input type="submit" value="submit"/>
</form>
</body>
</html>


But the problem is that, I get the following *ERROR* :

*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*
*
*
*Please help me to find out solution to this problem.*
*
*
*Mapguide Version : 2.5.0.7749*
*
*
Thanks
Jeny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapguide-users/attachments/20130717/bb789909/attachment.html>


More information about the mapguide-users mailing list