February 2010
1 post
csc309 webserver & javascript cookies
Here is the pickling and cookie webserver example using webpy that I presented in tutorial:
#!/usr/bin/env python
import os
import web
from pickle import load, dump
urls = (
'/', 'Index'
)
app = web.application(urls, globals())
# global session store & session id
SESSION_COUNT = 0
SESSIONS = {}
# methods to save & load data to files to persist
# session changes across restarts...