Are you talking about storing username and password in a client side cookie,
or are you talking about adding a functionality to turbine that
transparently maintains session state by using cookies?

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Leon Messerschmidt
> Sent: 29. janúar 2001 07:07
> To: Turbine
> Subject: Re: Turbine & cookies
>
>
> Hi,
>
> I think I might not have been very clear.  I need _persistent_ cookies for
> "remembering" users between sessions.  This is not critical to my app, but
> users don't want to log in everytime that a session starts.  I'm going to
> add a "Remeber me on this computer" option for the user that
> writes a cookie
> which will result in an automatic log in.
>
> Instead of using raw request.getCookies() and
> response.addCookie() I though
> a utility class might be handy (maybe to other users as well).
>
> public interface Cookies
> {
>     public void set (String name, String value);
>     public void set (String name, String value, int expire);
>
>     public void remove (String name);
>     public void removeAll ();
>
>     public String getAsString (String name);
>     public int getAsInt (String name);
>
>     public String[] getNames();
>
>     // I'm not to sure about these...
>     // User for cross-session log in.
>     public void setUser (User user);
>     public User getUser ();
> }
>
> Any thoughts...
>
> ~ Leon
>
> ----- Original Message -----
> From: "Jon Stevens" <[EMAIL PROTECTED]>
> To: "Turbine" <[EMAIL PROTECTED]>
> Sent: Friday, January 26, 2001 8:01 PM
> Subject: Re: Turbine & cookies
>
>
> > on 1/26/01 4:40 AM, "Leon Messerschmidt" <[EMAIL PROTECTED]> wrote:
> >
> > > Hi,
> > >
> > > I'm implementing an app that requires the use of cookies.  Cookies
> aren't
> > > critical for the working of the app so I'm pretty save... I hope....
> > >
> > > Is there anything I should watch out for when using cookies with
> Turbine?
> > > I'm thinking of maybe implementing a Turbine Service that helps with
> > > cookies.  Is this worthwhile?
> > >
> > > Hmmm...  This probably does not fit the description of a service, for
> > > Cookies are per-request and not a singleton.  Any thoughts?
> > >
> > > ~ Leon
> >
> > This is standard Servlet API stuff.
> >
> > HttpSession session = data.getSession();
> >
> > that is all you need.
> >
> > -jon
> >
> >
> >
> > ------------------------------------------------------------
> > To subscribe:        [EMAIL PROTECTED]
> > To unsubscribe:      [EMAIL PROTECTED]
> > Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> > Problems?:           [EMAIL PROTECTED]
> >
>
>
>
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]
>



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to