How do I clear the session storage object?

Controller as below. Call setsession and it sets session.temp and shows all 
the session variables. If I call clearsession then  it shows a page with an 
empty storage object as if it had cleared the session object. However if I 
then call showsession then it shows the original session variables.


def setsession():
    session.temp="ggggggg"
    return dict(session=session)

def clearsession():
    session.clear()
    return dict(session=session)

def showsession():
    return dict(session=session)

-- 



Reply via email to