How to save and read user preferences?

This topic has been viewed 3953 times and has 4 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
bluesky5566
Posts: 7
Joined: Wed Jul 28, 2010 6:28 am

How to save and read user preferences?

Post by bluesky5566 »

Hello,how to save and read user preferences in SweetHome3DApplet?
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: How to save and read user preferences?

Post by Puybaret »

It's written in SweetHome3DApplet javadoc:
You must create two HTTP services able to write and read user preferences as a XML stream, and give their URL in writePreferencesURL and readPreferencesURL applet parameters. Use cookies to know the user who writes or reads the preferences.
Emmanuel Puybaret, Sweet Home 3D creator
bluesky5566
Posts: 7
Joined: Wed Jul 28, 2010 6:28 am

Re: How to save and read user preferences?

Post by bluesky5566 »

OK,thanks,but I want to how to save the file to the user preferences and associate? how to get user cookies?
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: How to save and read user preferences?

Post by Puybaret »

The management of user cookies depends on the technology you use on server side.
PHP or JSP sessions should help you to manage them.
Emmanuel Puybaret, Sweet Home 3D creator
bluesky5566
Posts: 7
Joined: Wed Jul 28, 2010 6:28 am

Re: How to save and read user preferences?

Post by bluesky5566 »

well,thanks a lot
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest