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:
F
according to my little knowledge, php cannot store an instance of an
object in a session, only primitives variables like strings, integers,
floats and arrays (asp.net instead can).
for your app you must save the context (mapfile path, the extent, the
layers status etc.), and re-instance the map ob
And even if it was possible it is NOT recommended to reuse mapscript
objects across requests, see my previous post on the "Mapserver Thread
Safety" thread earlier this week.
Umberto
On Fri, Nov 21, 2008 at 10:13 AM, Pietro Giannini <[EMAIL PROTECTED]> wrote:
> according to my little knowledge, ph
Ciao Umberto,
excuse me, but your statement has put me in a state of anxiety :)
Currently I'm involved in an ASP.NET C# mapscript developement, and I use
extensively the method of saving mapscript object in session.
Naturally I tested the envirenmnet with a certain number of concurrent
users, and
On Fri, Nov 21, 2008 at 11:55 AM, Pietro Giannini <[EMAIL PROTECTED]> wrote:
> Ciao Umberto,
>
> excuse me, but your statement has put me in a state of anxiety :)
>
> Currently I'm involved in an ASP.NET C# mapscript developement, and I use
> extensively the method of saving mapscript object in ses