November 10th, 2003, 10:28 PM
python and cookie
how i can set life time of a cookie using python .i want to reset(destroy) the cookie when the interaction is idle for a time or when logout from the site ..can u help me?
November 10th, 2003, 11:52 PM
Set the expires value:
C = Cookie.SimpleCookie()
C["cookie_name"] = "cookie_value"
# Set cookie expiration time to 1 hour (3600 seconds)
C["cookie_name"]["expires"] = 3600
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
"I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo