I belive that MapGuide runs in the "System" account, so it has full access.
Are you certain that $sid is the same sessionid as the connection has?
You cannot save to another session (perhaps the Administrator can?).

Regards, Kenneth Skovhede, GEOGRAF A/S



nclayton skrev:
I am having this exact same problem. I am using php and the ajaxviewer.
I was able to store the weblayout in Library:// but get 'Permission denied'
when trying to store in Session:

Here is my code:

function loadWebLayout($sid,$svc){

  $lyt = <<<XML
    weblayout xml here...
XML;

  $dom = new domDocument;
  $dom->loadXML($lyt);
  $def = "Session:" . $sid . "//standard.WebLayout";
  $rid = new MgResourceIdentifier($def);
  $dat = $dom->saveXML();
  $src = new MgByteSource($dat,strlen($dat));
  $src->SetMimeType(MgMimeType::Xml);
  $svc->SetResource($rid,$src->GetReader(),null);
}

should the IUSR_* account have write/modify rights to the session folder in
the repository perhaps?
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to