[Mapserver-users] Storing database connections in a CGI session

Norman Vine nhv at cape.com
Wed Dec 10 06:06:51 PST 2003


Jan Hartmann writes:
> 
> Frank Warmerdam wrote:
> > 
> > There is already some connection caching logic in MapServer.  It was
> > primarily aimed at allowing reuse of a session within one map rendering.
> > For instance, for when several layers come from the same database. 
> > 
> 
> For MapServer CGI this is much harder (where would the CONNECTION point 
> to in a system-independent way?). Frank's FastCGI approach looks 
> promising, but also reasonably difficult to implement. Does anyone have 
> any comments on the feasibility/possibility of expanding the CONNECTION 
> keyword for the script versions only?

For Python at least SCGI < A Simple Common Gateway Interface alternative >
http://www.mems-exchange.org/software/scgi/

works for me in my Quixote based apps
http://www.mems-exchange.org/software/quixote/

I would think that the 'technique' should port to other languages

HTH

Norman




More information about the MapServer-users mailing list