On 2008-04-25, David <[EMAIL PROTECTED]> wrote:
> Another note: 'expires' is apprantly a legacy attribute for early
> Netscape browsers. The RFC and python source comments suggest that you
> use 'Max-Age' instead.
Theoretically, yes. In practice, no. *Nobody* uses the new-style
cookies, everyone u
> import Cookie
> import time
> c = Cookie.SimpleCookie()
> c['data'] = "unamepwordwhatever"
> c['data']['expires'] = 30 * 24 * 60 * 60
> print c
>
> Gives an output of:
>
> "Set-Cookie: data=unamepwordwhatever; expires=Sat, 24-May-2008
> 12:11:36 GMT"
>
Hi again. I didn't see your replie
On Apr 24, 12:41 pm, sophie_newbie <[EMAIL PROTECTED]> wrote:
> On Apr 22, 8:38 pm, David <[EMAIL PROTECTED]> wrote:
>
> > On Tue, Apr 22, 2008 at 6:21 PM,sophie_newbie<[EMAIL PROTECTED]> wrote:
> > > Does anyone know how to do this? I can't seem to make it work.
>
> > > I'm using:
>
> > > c = Co
On Apr 22, 8:38 pm, David <[EMAIL PROTECTED]> wrote:
> On Tue, Apr 22, 2008 at 6:21 PM,sophie_newbie<[EMAIL PROTECTED]> wrote:
> > Does anyone know how to do this? I can't seem to make it work.
>
> > I'm using:
>
> > c = Cookie.SimpleCookie()
> > c['data'] = "unamepwordwhatever"
> > c.expires =
On Tue, Apr 22, 2008 at 6:21 PM, sophie_newbie <[EMAIL PROTECTED]> wrote:
> Does anyone know how to do this? I can't seem to make it work.
>
> I'm using:
>
> c = Cookie.SimpleCookie()
> c['data'] = "unamepwordwhatever"
> c.expires = time.time() + 300
> print c
>
>
> This doesn't seem to work,