create/get/destroy sessions in PythonFrost framework.
by using this function you can create a session. morever in this example demonstrates how to Create/Delete/Get Sessions.
from pythonfrost import route, Server, session, get_session, destroy_session
@route("/")
def test():
session(name="test_session", data="Hello World")
return "Session Created Successfuly!"
@route("/getsession")
def get_():
x = get_session("test_session")
return f"the data is: {x}"
@route("/destroy")
def destroy():
destroy_session("test_session")
Server()