Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

swing app, possible to have a cookie

Thread view: 
John_Woo - 20 Jul 2006 18:11 GMT
Hi,

For swing app using socket communicating with server, is it possible to
leave a cookie like in servelt app? if so ,how ?

--
Thanks
John
Toronto
Oliver Wong - 20 Jul 2006 18:34 GMT
> 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?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.