You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Eddie Bush <ek...@swbell.net> on 2002/02/28 22:22:46 UTC

[off topic] HTTP Cookie Persistence

I know how to create cookies, and how to cause them to expire.  I also know how to cause a 'session cookie' to be created.  However, what I would like to do is create a cookie that persists 'forever'.

Is there a way to do this?

What I want to do is give site visitors the ability to log in once and then never have to log in again (unless they are doing something that might impact their checkbook, in which case they always have to re-login - just to make extra sure)

Thanks!

Eddie


Re: [off topic] HTTP Cookie Persistence

Posted by Eddie Bush <ek...@swbell.net>.
OK, so just continually reset it.  That's what I had decided but was in
hopes of a better solution.

Thanks!

Eddie

----- Original Message -----
From: "Saeid Zoonematkermani" <Sa...@gte.net>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Thursday, February 28, 2002 3:30 PM
Subject: Re: [off topic] HTTP Cookie Persistence


> Put an expiration date that is far in the future, say 10 years from now.
> Every time the cookie is updated, change the date to current_time + 10
> years and you should be OK.
>
> - Saeid
>
> At 01:22 PM 2/28/2002, you wrote:
> >I know how to create cookies, and how to cause them to expire.  I also
> >know how to cause a 'session cookie' to be created.  However, what I
would
> >like to do is create a cookie that persists 'forever'.
> >
> >Is there a way to do this?
> >
> >What I want to do is give site visitors the ability to log in once and
> >then never have to log in again (unless they are doing something that
> >might impact their checkbook, in which case they always have to
re-login -
> >just to make extra sure)
> >
> >Thanks!
> >
> >Eddie
>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [off topic] HTTP Cookie Persistence

Posted by Saeid Zoonematkermani <Sa...@gte.net>.
Put an expiration date that is far in the future, say 10 years from now. 
Every time the cookie is updated, change the date to current_time + 10 
years and you should be OK.

- Saeid

At 01:22 PM 2/28/2002, you wrote:
>I know how to create cookies, and how to cause them to expire.  I also 
>know how to cause a 'session cookie' to be created.  However, what I would 
>like to do is create a cookie that persists 'forever'.
>
>Is there a way to do this?
>
>What I want to do is give site visitors the ability to log in once and 
>then never have to log in again (unless they are doing something that 
>might impact their checkbook, in which case they always have to re-login - 
>just to make extra sure)
>
>Thanks!
>
>Eddie




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>