[mapguide-users] Get coords from Database with PHP then zoom to location in iFrame

Howitzer khinskens at wesa.ca
Thu Jul 4 08:18:14 PDT 2013


Thanks Gordon! I have implemented that and changed it over to MGOS. I am very
pleased to see my data being passed from the iframe to the internal
javascript and PHP.

However, it is apparently not connecting to my session since it throws this
error:
/exception 'mguserinformation' in C:\Program
Files\OSGeo\MapGuide\Web\www\fusion\layers\MapGuide\php\GETSELECTIONXML.php:13/

This is line 13:
/$userInfo = new MgUserInformation($session);/

$session of course comes from how you have it set up:
/$session = urldecode($_REQUEST["SESSION"]);/

This is the URL being passed to GETSELECTIONXML.php:
/fake.mysite.com/mapguide/fusion/layers/MapGuide/php/GETSELECTIONXML.php?MAPNAME=CLIENT_small51d58df907079&SESSION=abcdfa98-e4bb-11e2-8000-005056b359e2_en_MTI3LjAuMC4x0AFC0AFB0AFA&INTID=1171483743/

And when I echo the $session variable I get:
/abcdfa98-e4bb-11e2-8000-005056b359e2_en_MTI3LjAuMC4x0AFC0AFB0AFA/

I did change the $configFilePath variable:
/$configFilePath = "C:\Program Files\OSGeo\MapGuide\Web\www\webconfig.ini";/

The map itself loads fine when I pull it up at:
/fake.mysite.com/mapguide/fusion/templates/mapguide/standard/index.html?ApplicationDefinition=Library://CLIENT/Layouts/CLIENT_Small.ApplicationDefinition&locale=en&intid=1171483743/


I'm completely out of my element here and I hope I've given enough
information... Why is MgUserInformation() not connection to my $session?

Thank you!



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Get-coords-from-Database-with-PHP-then-zoom-to-location-in-iFrame-tp5060902p5064119.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list