On Mar 25, 10:56 pm, Thierry <[email protected]> wrote:
> I succeeded in running the application in daemon mode, I think, but
> the problem is still there.
> My apache configuration is now

If that is really your Apache configuration, then no you are not
running in daemon mode. There are no WSGIDaemonProcess or
WSGIProcessGroup directives present.

See:

  http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide

Anyway, all academic now if you have gone back to PHP.

Graham

> <VirtualHost *:80>
> ServerName aec.dev
> ServerAliaswww.aec.dev
> serverAlias tmain.ath.cx
> DocumentRoot /var/www/arc_en_ciel/htdocs/
> CustomLog /var/www/arc_en_ciel/log/access_log combined
> ErrorLog  /var/www/arc_en_ciel/log/error_log
>
> RewriteEngine on
> RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
> RewriteRule .* - [F]
>
> include /etc/apache2/vhosts.d/expire
> include /etc/apache2/vhosts.d/defRoot
>
> WSGIScriptAlias / /var/www/arc_en_ciel/htdocs/base.py
> </VirtualHost>
>
> I've switched to a file store for the session, hoping it would be
> better, but still nothing.
> The file store session path is
>   /var/www/arc_en_ciel/htdocs/../sess
> I've chmoded it to 777, but no files are created in that folder from
> mod_wsgi.
> No errors, no warning, nothing.
>
> I've extended my entry point with
>     if session.get('truc',False)==False:
>       session.truc=1
>     else:
>       session.truc=session.truc+1
>     web.debug(session)
> and a web.debug(session) always give me a value of 1.
> [Wed Mar 25 12:37:16 2009] [error] [client 194.209.119.22] <Storage
> {'truc': 1, 'logged': False}>
> [Wed Mar 25 12:37:24 2009] [error] [client 194.209.119.22] <Storage
> {'truc': 1}>
> [Wed Mar 25 12:39:21 2009] [error] [client 194.209.119.22] <Storage
> {'truc': 1}>
> [Wed Mar 25 12:39:52 2009] [error] [client 194.209.119.22] <Storage
> {'truc': 1, 'logged': False}>
> [Wed Mar 25 12:40:04 2009] [error] [client 194.209.119.22] <Storage
> {'truc': 1, 'logged': False}>
> [Wed Mar 25 12:40:15 2009] [error] [client 194.209.119.22] <Storage
> {'truc': 1}>
> [Wed Mar 25 12:40:16 2009] [error] [client 194.209.119.22] <Storage
> {'truc': 1}>
> [Wed Mar 25 12:40:17 2009] [error] [client 194.209.119.22] <Storage
> {'truc': 1}>
>
> The session is not stored between requests. I think I could mimic it
> with the db, via a db.insert() and db.select() sequence, but I'd like
> to understand if  I did anything wrong...
> What looks strange too, is that when I dump
> web..config.session_parameters, the cookie domain is empty, and I get
> the same secret_key with any browser or session I use to connect to
> the site:
> With opera:
> [Wed Mar 25 12:51:27 2009] [error] [client 194.209.119.22] <Storage
> {'ignore_expiry': True, 'expired_message': 'Session expired',
> 'timeout': 86400, 'ignore_change_ip': True, 'cookie_domain': None,
> 'secret_key': 'fLjUfxqXtfNoIldA0A0J', 'cookie_name':
> 'webpy_session_id'}>
> With IE 7:
> [Wed Mar 25 12:50:46 2009] [error] [client 194.209.119.22] <Storage
> {'ignore_expiry': True, 'expired_message': 'Session expired',
> 'timeout': 86400, 'ignore_change_ip': True, 'cookie_domain': None,
> 'secret_key': 'fLjUfxqXtfNoIldA0A0J', 'cookie_name':
> 'webpy_session_id'}>, referer:http://tmain.ath.cx/
> with firefox 3.0:
> [Wed Mar 25 12:48:59 2009] [error] [client 194.209.119.22] <Storage
> {'ignore_expiry': True, 'expired_message': 'Session expired',
> 'timeout': 86400, 'ignore_change_ip': True, 'cookie_domain': None,
> 'secret_key': 'fLjUfxqXtfNoIldA0A0J', 'cookie_name':
> 'webpy_session_id'}>
>
> And I get no session cookie when serving from apache.
> Only when serving from python.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to