MCPcopy Create free account
hub / github.com/webpy/webpy / _validate_ip

Method _validate_ip

web/session.py:135–139  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

133 return self.expired()
134
135 def _validate_ip(self):
136 # check for change of IP
137 if self.session_id and self.get("ip", None) != web.ctx.ip:
138 if not self._config.ignore_change_ip:
139 return self.expired()
140
141 def _save(self):
142 current_values = dict(self._data)

Callers 1

_loadMethod · 0.95

Calls 2

expiredMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected