October 10th, 2005, 10:16 AM
Cookies -- Not saving, but I can print the cookie in session
I try to save the cookie, so that my users only have to login once per session.
I used code like this
It'll print the cookie, but then when I look at my cookies it isn't there.
u = form['username'].value
p = form['password'].value
p = md5.new(p).hexdigest()
cookie = Cookie.SimpleCookie()
cookie['username'] = u
cookie['password'] = p
cookie['username']['expires'] = 10000
cookie['password']['expires'] = 10000
I erased all my cookies and tryed again, just to ensure I didn't miss it, but it isn't there at all....
Did I miss a step?
I'm using the tutorial here --