[Mono-list] Mono and cookiesless = true

Keats keatsy at free.fr
Wed Jul 26 15:47:48 EDT 2006


----- Original Message ----- 
From: "Gonzalo Paniagua Javier" <gonzalo at novell.com>
To: <mono-list at lists.ximian.com>
Sent: Wednesday, July 26, 2006 8:38 PM
Subject: Re: [Mono-list] Mono and cookiesless = true


> On Wed, 2006-07-26 at 20:21 +0200, Keats wrote:
> That's not enough to reproduce your setup.
> Anyway, my wild guess is that you're using AddHandler instead of
> SetHandler for the virtual directory of your application. AFAIR, that
> won't work with cookieless.

thanx i ve add sethandler and it works :) 

<IfDefine MONO>
        # Set this to False if you manage your ASP.Net server through
        # /etc/init.d/mod-mono-server
        MonoRunXSP True
        MonoServerPath "/usr/lib/xsp/2.0/mod-mono-server2.exe"
        <IfModule !mod_mono.c>
                LoadModule mono_module modules/mod_mono.so
        </IfModule>
        <IfModule mod_mime.c>
                AddHandler mono .aspx .ashx .asmx .ascx .asax .config .ascx
        </IfModule>
         MonoApplications "/:/var/www/dinosafari"

        <Location />             # added for cookiesless
                 SetHandler Mono    # added for cookiesless
        </Location>   # added for cookiesless

         <Directory /var/www/dinosafari>
                AllowOverride All
                <IfModule mod_access.c>
                        Order allow,deny
                         Allow from all
                 </IfModule>
                <FilesMatch "\.(gif|jp?g|png|css|ico|xsl|wmv|zip)$">
                        SetHandler None
                </FilesMatch>

                SetHandler Mono   # added for cookiesless

                 <IfModule mod_dir.c>
                        DirectoryIndex index.aspx Default.aspx
                 </IfModule>
         </Directory>
</IfDefine>


More information about the Mono-list mailing list