When you load up the page are you getting a new session id in the cookie on every request, or is the session id the same?
When I've had issue with sessions break when moving code between machines it has often been because I didn't update the cookie domain. web.config.session_parameters['cookie_domain'] = "mytestdomain.com" Can you get a basic session example working? There's a basic example on the session page http://webpy.org/cookbook/sessions. This would allow you to determine if it's your session configuration or something related to the DBAuth module. Also, you mentioned that this works fine on your local machine. Are you using the built in server when running locally, or are you duplicating the Apache setup as well? If not, try running your app using web.py's built in web server on the AWS box. Maybe the issue is with your Apache config. On Aug 13, 11:03 am, amar <[email protected]> wrote: > Alright..... So, I'm about to explode at this point, I've tried > logging errors using the standard logging module, I've tried using PDB > and winPDB. Now I've Try/Except in the decorator method of the DBAuth > module to see what the errors are and Ive received the following - > > <type 'exceptions.AttributeError'> at /upload > 'user' > > Python /usr/lib/pymodules/python2.6/web/utils.py in __getattr__, line > 70 > Web GEThttp://ec2-75-101-170-236.compute-1.amazonaws.com/upload > > Any help deciphering this would be greatly appreciated!!! > > On Aug 12, 1:58 am, amar <[email protected]> wrote: > > > > > > > > > Ok, so I still haven't cracked this one...yet! > > > I've changed to DBStore for sessions and installed the cookie manager > > firefox plugin. I'm getting sessions created and added into the DB, > > but for some reason the decorators aren't working for me. > > > Also I copied the code exactly to my ubuntu laptop and setup > > everything in exactly way and it runs perfectly. > > > ??? > > > On Aug 8, 11:42 pm, amar <[email protected]> wrote: > > > > Hi Guys/Gals, > > > > I created a web app using JP Scalettis brilliant DBAuth python module > > > (http://jpscaletti.com/webpy_auth/), but when I try running it live > > > (on AWS) I have some problems. > > > > I can login but once I go to a page that is protected using the > > > @auth.protected() decorators Im thrown back to the login page. > > > > This problem only started once I began serving the app through apache/ > > > mod_wsgi. Also Im not getting any errors in my Apache error logs. > > > > Thanks -- 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.
