[Mono-list] mono fastcgi asp 2.0 session lost

David Temes dtemes at infoco.es
Wed Oct 31 13:06:57 EDT 2007


Now it's not loosing the sesion any more.

I had an issue with the pgsql connection not being able to resolve the host 
name specifyed in the SERVER= parameter of the connection string, but using 
the IP address of the db server solved it. I will investigate this new 
issue, but probably it does not make sense using npgsql 1.0 and mono 1.2.4, 
so will come back to this issue when I have npgsql 1.1 and mono 1.2.5 (or 
1.2.6?) working.

Thanks


David Temes.
----- Original Message ----- 
From: "Robert Jordan" <robertj at gmx.net>
To: <Mono-list at lists.ximian.com>
Sent: Wednesday, October 31, 2007 5:38 PM
Subject: Re: [Mono-list] mono fastcgi asp 2.0 session lost


> 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/
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.503 / Virus Database: 269.15.15/1101 - Release Date: 
> 31/10/2007 10:06
>
> 



More information about the Mono-list mailing list