[mapserver-users] php mapscript objects in session?

Christopher Condit condit at sdsc.edu
Thu Nov 20 15:33:50 PST 2008


Hi-
I'm using ms4w 2.2.7 and I've run into a problem. Ideally I'd like to
create the MapScript map object and store it in the session:

$_SESSION['map'] = ms_newMapObj($getMapPath);

This works fine for the that page, for the first call, but when I
attempt to reference it later I get a PHP error:
Fatal error: Object has an invalid _handle_ property 

Am I missing something here?

Thanks,
-Chris




More information about the MapServer-users mailing list