Exemple #1
0
def hello():
    try:
        GUID = uuid.uuid4()
        DBController.AddCookie(GUID, unicode("NSW"))
        bottle.response.set_cookie("access", str(GUID), max_age=28800)  #Domain
        return (stopgap.a)
    except Exception as e:
        return (e)
Exemple #2
0
def AddCookie():
    cookie = bottle.request.query["cookie"]
    state = bottle.request.query["state"]
    print(cookie)
    DBController.AddCookie(cookie, state)