예제 #1
0
def keepalive(sid):
	"Keepalive para la sesion, devuelve el ttl de la misma."
	s = session.sid_open(sid)
	s.touch()
	return s.ttl
예제 #2
0
def _sid2per(sid):
	"Devuelve un objeto Personal en base a el session ID"
	username = session.sid_open(sid).username
	return personal.get_personal(username)