> Hi,
>
> For swing app using socket communicating with server, is it possible to
> leave a cookie like in servelt app? if so ,how ?
Technically, the term "cookie" only make sense in the context of the
HTTP protocol. That being said, your Swing app is free to save to disk any
data it wants, whenever it wants.
- Oliver
John_Woo - 20 Jul 2006 21:31 GMT
> > Hi,
> >
[quoted text clipped - 6 lines]
>
> - Oliver
Thanks Oliver.
I'm think of how to get the folder the app can write to, b/c users may
run this swing app
in Linux and they don't have writing permit, but they are allowed to
have the Browser write cookie to somewhere.
Mark Space - 20 Jul 2006 21:49 GMT
>>> Hi,
>>>
[quoted text clipped - 12 lines]
> in Linux and they don't have writing permit, but they are allowed to
> have the Browser write cookie to somewhere.
In this case, cookies are written to a users home directory, yes? (I
think so..)
So users do in fact have write permission. Just make a directory
$HOME/.myapp and put stuff there.
Mark Space - 20 Jul 2006 21:51 GMT
My brain being slow, I thought of this just after I clicked send...
Isn't there a preferences API in Java? I know there is because I just
checked. Why not use that?