Jump to content

Python Script And Sessions


slavansk07

Recommended Posts

I am trying to install 'web.py' application on heliohost. And everything seems to work fine instead sessions.

I store session information in postgresql. But any reference to session variable creates new session object (new record in a database) and therefore I have no session persistence among my application. I guess something has to be wrong with apache configuration file, not python script. Maybe my guess is wrong. Anyway I can't figure that out. Please, any suggestions. I'm still a rookie... But I hope time will fix it :-)

 

.htaccess file script

 

 

<Files index.py>

SetHandler wsgi-script

Options ExecCGI FollowSymLinks

</Files>

 

<IfModule mod_rewrite.c>

RewriteEngine on

RewriteOptions Inherit

RewriteBase /myapp

RewriteCond %{REQUEST_URI} !^/favicon.ico$

RewriteCond %{REQUEST_URI} !^(/.*)+index.py/

RewriteRule ^(.*)$ index.py/$1 [PT]

</IfModule>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...