[Mono-list] mono fastcgi asp 2.0 session lost
robertj at gmx.net
Wed Oct 31 12:38:03 EDT 2007
David Temes wrote:
> I am testing fastcgi-mono with an asp 2.0 app that uses forms based
> security, and every now and then the session seems to be lost so that
> i get redirected to the login page, also i had some problems getting
> jpg,css and other "plain" files, even after passing the auth process.
> I have corrected the latest problem avoiding using fastcgi for the
> mentioned file types, but I have no clue about how to troubleshoot
> the session lost problem and dig further into the root of the
> At first I though it was becouse I accidentally omitted the
> "max-procs" => 1 in the fastcgi configuration, but with just 1
> process I get the same.
> The application works as expected with apache/mod_mono or xsp2.
> I am using last fastcgi form SVN, lighttpd 1.4.16 and mono 1.2.4 in a
> xen virtualized debian server running 22.214.171.124.xs126.96.36.1991.3960
You should use fastcgi from Mono's SVN. It temporarily
fixes this problem by disallowing the autoconfiguration/automapping
The applications must be specified either using fastcgi-mono-server's
command line or by setting MONO_FCGI_APPLICATIONS environment variable.
A sample for lighttpd (see "bin-environment"):
fastcgi.server = (
"" => ((
"socket" => "/tmp/fastcgi-mono-server",
"bin-path" => "/usr/bin/fastcgi-mono-server",
"bin-environment" => (
"max-procs" => 1,
"check-local" => "enable"
See "fastcgi-mono-server --help" for other env vars and settings.
More information about the Mono-list