|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
hi
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? ![]() |
|
#2
|
||||
|
||||
|
Set the expires value:
Code:
import Cookie 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 Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > python and cookie |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|