[Mono-list] mono fastcgi asp 2.0 session lost

Robert Jordan robertj at gmx.net
Wed Oct 31 12:38:03 EDT 2007


Hi,

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
> problem.
> 
> 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 2.6.16.38.xs3.2.0.531.3960
> kernel

You should use fastcgi from Mono's SVN[1]. It temporarily
fixes this problem by disallowing the autoconfiguration/automapping
feature.

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" => (
                         "MONO_FCGI_APPLICATIONS" => 
"/test:/srv/www/htdocs/test"
                 ),
                 "max-procs" => 1,
                 "check-local" => "enable"
         ))
)

See "fastcgi-mono-server --help" for other env vars and settings.

Robert

[1] http://anonsvn.mono-project.com/source/trunk/xsp/




More information about the Mono-list mailing list