Hello,
In relation to this post :
http://groups.google.com/group/webpy/browse_thread/thread/70a6f1221bc89a0c/72016d446edae00a?lnk=gst&q=cgi
I have a question about this:
The module session.py uses web.ctx.ip:
In session.py, line 98
def _validate_ip(self):
# check for change of IP
if self.session_id and self.get('ip', None) != web.ctx.ip:
if not self._config.ignore_change_ip:
return self.expired()
If i make a "print session" in my index class, i have:
<Storage {'ip': u'127.0.0.1', 'session_id':
'aafffeddac2e4fd97fbc61e7df6b92e184d89066'}>
So should i replace web.ctx.ip with
web.ctx.env['HTTP_X_FORWARDED_FOR'] in session.py if i use them with
lighttpd for exemple?
--
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.