I think I found solution for authentication.
<?php
$installDir =
   'C:Program FilesMapGuideOpenSourcece.buildprop.entity.ProdStu
dio=Studio\';
$extensionsDir = $installDir . 'WebServerExtensions\www\\';
$viewerDir = $installDir . 'mapviewerphp\\';
include $viewerDir . 'constants.php';
MgInitializeWebTier($extensionsDir . 'webconfig.ini');
$site = new MgSite();
$site->Open(new MgUserInformation("Anonymous", ""));
$sessionId = $site->CreateSession();
$webLayout =
   "Library://Samples/Layouts/SamplesPhp.WebLayout";
?>
<html>
<head>
<title>Simple Sample Application</title>
</head>
<body marginheight="0" marginwidth="0">
<iframe id=&quot;viewerFrame&quot; width=&quot;100%&quot;
height=&quot;100%&quot; frameborder=0
scrolling=&quot;no&quot;
src=&quot;/mapguide/mapviewerajax/?SESSION=&lt;?= $sessionId ?>&
WEBLAYOUT=<?= $webLayout ?>"></iframe>
</body>
</html>

 Anybody know how to set up first part of this code to be suitable for
fusion template (MG 2.4, Apache) ? I mean the first part in PHP




--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/authentication-II-tp5025338p5025648.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to