Username and password check problem

I have learned Java for 3 months and I am going to finish a project for the school. I have had some problems on username & password check and authorization from SQL database using ODBC. Any source code I can learn from?
Thanks in advance.

I'm not too clear on what you exactly want, but here's an example from my book using "username", "password", and a "database". I can send you the db file if you need to see it. I hope this helps.
// Fig. 18.24: TableDisplay.java
// This program displays the contents of the Authors table
// in the Books database.
import java.sql.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
public class TableDisplay extends JFrame {
private Connection connection;
private JTable table;
public TableDisplay()
// The URL specifying the Books database to which
// this program connects using JDBC to connect to a
// Microsoft ODBC database.
String url = "jdbc:odbc:Books";
String username = "anonymous";
String password = "guest";
// Load the driver to allow connection to the database
try {
Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
connection = DriverManager.getConnection(
url, username, password );
catch ( ClassNotFoundException cnfex ) {
System.err.println(
"Failed to load JDBC/ODBC driver." );
cnfex.printStackTrace();
System.exit( 1 ); // terminate program
catch ( SQLException sqlex ) {
System.err.println( "Unable to connect" );
sqlex.printStackTrace();
getTable();
setSize( 450, 150 );
show();
private void getTable()
Statement statement;
ResultSet resultSet;
try {
String query = "SELECT * FROM Authors";
statement = connection.createStatement();
resultSet = statement.executeQuery( query );
displayResultSet( resultSet );
statement.close();
catch ( SQLException sqlex ) {
sqlex.printStackTrace();
private void displayResultSet( ResultSet rs )
throws SQLException
// position to first record
boolean moreRecords = rs.next();
// If there are no records, display a message
if ( ! moreRecords ) {
JOptionPane.showMessageDialog( this,
"ResultSet contained no records" );
setTitle( "No records to display" );
return;
setTitle( "Authors table from Books" );
Vector columnHeads = new Vector();
Vector rows = new Vector();
try {
// get column heads
ResultSetMetaData rsmd = rs.getMetaData();
for ( int i = 1; i <= rsmd.getColumnCount(); ++i )
columnHeads.addElement( rsmd.getColumnName( i ) );
// get row data
do {
rows.addElement( getNextRow( rs, rsmd ) );
} while ( rs.next() );
// display table with ResultSet contents
table = new JTable( rows, columnHeads );
JScrollPane scroller = new JScrollPane( table );
getContentPane().add(
scroller, BorderLayout.CENTER );
validate();
catch ( SQLException sqlex ) {
sqlex.printStackTrace();
private Vector getNextRow( ResultSet rs,
ResultSetMetaData rsmd )
throws SQLException
Vector currentRow = new Vector();
for ( int i = 1; i <= rsmd.getColumnCount(); ++i )
switch( rsmd.getColumnType( i ) ) {
case Types.VARCHAR:
currentRow.addElement( rs.getString( i ) );
break;
case Types.INTEGER:
currentRow.addElement(
new Long( rs.getLong( i ) ) );
break;
default:
System.out.println( "Type was: " +
rsmd.getColumnTypeName( i ) );
return currentRow;
public void shutDown()
try {
connection.close();
catch ( SQLException sqlex ) {
System.err.println( "Unable to disconnect" );
sqlex.printStackTrace();
public static void main( String args[] )
final TableDisplay app = new TableDisplay();
app.addWindowListener(
new WindowAdapter() {
public void windowClosing( WindowEvent e )
app.shutDown();
System.exit( 0 );

Similar Messages

  • I cannot get into iCloud, it sites connection error. I am online otherwise. My username and password check out. Anyone else with a similar problem?

    I Cannot getinto iCloud, it sites connection error. I am online otherwise. My username and password check out. Anyone else with this problem?

    SUCCESS! I was trying to get in with Internet Explorer, and getting the error message.
    I switched over to FireFox, and connected immediately!

  • UserName and password check with sessions..

    Hai all,
    i hav sent username and password to login.jsp page to next servlet page, in servlet file create session and i will bound the username and password.so i will create for each user session and set the attributes..its working fine.
    but problem is whn i hav enters username and password i want to knowexisting valid session users having this username and password.that is i want to enter the only one user with the same username and password.....i want to restrict the same user for two logins at same instant.....
    i hope u understood my point to say...
    pls giv the soln to this senario?
    Thanks & Regards,
    Suryakant

    Hi,
    You could use a HashMap stored in application scope or implement a Singleton-patterned class that has a HashMap as an attribute.
    After valid username & password is entered, you should retrieve this HashMap and look for an entry using username(all username must be differents)
      HashMap map=(HashMap)application.getAttribute("GLOBAL_HASH");
      if (map.get(username)!=null){  //user was previously logged.
      else{  //user has no been logged yet.
        map.put(username, new Object());
      }Be aware to synchronize all read/write calls to HashMap as well as implement session listeners Interface and methods to clean HashMap when session had expired and when user had logged out.
    Hope this help.

  • IWeb Url Username and Password protection problem

    After renewing a GoDaddy site and re-forwarding an already created iWeb site, I now get a .Mac required User Name and Password. What happened.? I just re-forwarded the url string that was already there on my .mac server.

    Hi Robert
    I am no expert but I just did a web site as well. If you want to protect it in IWEB click on your welcome page and at the bottom of the page you have a menu selection click on the icon for the inspector. looks like an italizised I then click over the menu option at the top of that that says password. you should be able to do it that way. good luck marty

  • How to catch exception while validating the username and password in hbm

    Hi,
    I do want to set the username and password dynamically in hibernate.cfg.xml
    Here below is my configuration file.
    {code<hibernate-configuration> 
    <session-factory> 
           <property name="hibernate.bytecode.use_reflection_optimizer">false</property> 
           <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property> 
           <property name="hibernate.connection.pool_size">10</property> 
           <property name="show_sql">true</property> 
           <property name="hibernate.dialect">org.hibernate.dialect.OracleDialect</property> 
           <property name="hibernate.hbm2ddl.auto">update</property> 
           <property name="current_session_context_class">thread</property> 
           <property name="show_sql">true</property> 
         </session-factory> 
    </hibernate-configuration>{code}
    Also im getting that session factory object like the below code.
    public class Sessions {        private static SessionFactory sessionFactory;      private static Configuration configuration = new Configuration();        static {          try {              String userName = GuigenserviceImpl.userName;              String password = GuigenserviceImpl.password;              String hostName = GuigenserviceImpl.hostName;              String portNo = GuigenserviceImpl.portNo;              String sId = GuigenserviceImpl.sId;                  configuration                      .setProperty("hibernate.connection.username", userName);              configuration                      .setProperty("hibernate.connection.password", password);              configuration.setProperty("hibernate.connection.url",                      "jdbc:oracle:thin:@" + hostName + ":" + portNo + ":" + sId);                try {              configuration.configure("/hibernate.cfg.xml");              sessionFactory = configuration.buildSessionFactory();              GuigenserviceImpl.strAccpted = "true";              }              catch (Exception e) {                    e.printStackTrace();                  GuigenserviceImpl.strAccpted = "false";              }            }          catch (HibernateException hibernateException) {              GuigenserviceImpl.strAccpted = "false";              hibernateException.printStackTrace();          }          catch (Throwable ex) {                GuigenserviceImpl.strAccpted = "false";              ex.printStackTrace();              throw new ExceptionInInitializerError(ex);          }      }          public static SessionFactory getSessionFactory() {          return sessionFactory;      } 
    So, in this above scenario, suppose if im giving the wrong password means exception should be caught and the string variable "GuigenserviceImpl.strAccpted" should be assigned to false.
    But im getting the SQL Exception only in console like wrong username and password. And finally i couldn't able to catch the exception in Sessions class, static block.
    Anyone can help me in catching that SQL Exception in my Sessions class and i need to handle that SQL Exception in my class.
    Im getting this following exception message in my console.
      INFO: configuring from resource: /hibernate.cfg.xml  Apr 6, 2009 2:47:00 PM org.hibernate.cfg.Configuration getConfigurationInputStream  INFO: Configuration resource: /hibernate.cfg.xml  Apr 6, 2009 2:47:00 PM org.hibernate.cfg.Configuration doConfigure  INFO: Configured SessionFactory: null  Apr 6, 2009 2:47:00 PM org.hibernate.connection.DriverManagerConnectionProvider configure  INFO: Using Hibernate built-in connection pool (not for production use!)  Apr 6, 2009 2:47:00 PM org.hibernate.connection.DriverManagerConnectionProvider configure  INFO: Hibernate connection pool size: 10  Apr 6, 2009 2:47:00 PM org.hibernate.connection.DriverManagerConnectionProvider configure  INFO: autocommit mode: false  Apr 6, 2009 2:47:00 PM org.hibernate.connection.DriverManagerConnectionProvider configure  INFO: using driver: oracle.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@192.168.1.12:1521:orcl  Apr 6, 2009 2:47:00 PM org.hibernate.connection.DriverManagerConnectionProvider configure  INFO: connection properties: {user=scott, password=****}  Apr 6, 2009 2:47:01 PM org.hibernate.cfg.SettingsFactory buildSettings  WARNING: Could not obtain connection metadata  java.sql.SQLException: ORA-01017: invalid username/password; logon denied        at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)      at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:131)      at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:204)      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:406)      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399)      at oracle.jdbc.driver.T4CTTIoauthenticate.receiveOauth(T4CTTIoauthenticate.java:799)      at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:368)      at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:508)      at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:203)      at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)      at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:510)      at java.sql.DriverManager.getConnection(DriverManager.java:525)      at java.sql.DriverManager.getConnection(DriverManager.java:140)      at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)      at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)      at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2073)      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1298)      at com.beyon.ezygui.server.Sessions.<clinit>(Sessions.java:39)      at com.beyon.ezygui.server.GuigenserviceImpl.testRPC(GuigenserviceImpl.java:322)      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
    Thanks in advance.
    Thanks & Regards,
    Kothandaraman N.

    Hi,
    Myself hardcoded that username and password checking like the below code.
    String name = loginData.get("userName").toString();
              String pswd = loginData.get("pswd").toString();
              String hstName = loginData.get("hName").toString();
              String prtNo = loginData.get("portNo").toString();
              String sid = loginData.get("sId").toString();
              SessionFactory sessionFactory = null;
              try {
                   if (name.trim().equals(userName) && pswd.trim().equals(password)
                             && hstName.trim().equals(hostName)
                             && prtNo.trim().equals(portNo) && sid.trim().equals(sId)) {
                        sessionFactory = Sessions.getSessionFactory();
                        strAccpted = "true";
                   } else {
                        strAccpted = "false";
              } catch (Exception e) {
                   e.printStackTrace();
                   strAccpted = "false";
              }I have my own values in string objects, then comparing that values with the values from login form. If both values are matching, then i will do configurations in hibernate.
    ResourceBundle resourceBundle = ResourceBundle
                   .getBundle("com.beyon.ezygui.server.Queries");
         public static final String connection_url = resourceBundle
                   .getString("connection.url");
         public static final String userName = resourceBundle.getString("userName");
         public static final String password = resourceBundle.getString("password");
         public static final String hostName = resourceBundle.getString("hostName");
         public static final String portNo = resourceBundle.getString("portNo");
         public static final String sId = resourceBundle.getString("sId");The above are the String objects i'm checking for the match with values from login form.
    Thanks & Regards,
    Kothandaraman N.

  • Ask for Username and Password while Opening an Applet

    Can we code such a way that , While we open an Applet , It should ask for User and password and upon sucessful validation , the Main applet must be loaded !
    Any Suggestions Please !
    Thanks .....

    public class FirstApplet extends Applet {
         private boolean authentified = false;
         private SecondApplet applet = null;
         public void init() {
              System.out.println("FirstApplet: init()");
              authentified=authentificate();
         public void start() {
              System.out.println("FirstApplet: start() "+authentified);
              if (authentified==true) {
                   applet=new SecondApplet();
                   applet.init();
                   applet.start();
         public void stop() {
              System.out.println("FirstApplet: stop()");
              if (applet!=null) applet.stop();
         public void destroy() {
              System.out.println("FirstApplet: destroy()");
              if (applet!=null) applet.destroy();
         private boolean authentificate() {
              System.out.println("FirstApplet: authentificate()");
              // ask the user for username and password
              // check the password, if it's ok, return true
              // if it's not okay, return false
              // how to do a login window, see
              // http://www.codeguru.com/java/articles/510.shtml
              return true;
    }

  • MS OUTLOOK PROMPT USERNAME AND PASSWORD REPEATLY WHEN WE LOGIN WINDOWS 8.1 WITH DOMAIN USER ON WINDOWS SERVER 2008R2

    Dear Sir
       My name is sandeep and i have a technical issue with MS office Outlook 2007 standard. the problem is i have windows 8.1 pro. and i have installed office 2007 standard on it. i have also joined this windows 8.1  to Domain Network(I have
    domain Server on Windows server 2008R2) now problem is that when i login with domain user on this windows 8.1 and configure my MS outlook the it prompts user name and password again and again showing error "
    Server responded -ERR access denied"  and if i login windows 8.1 with its local administrator user the all runs file then ms outlook does
    not prompt for username and password. this problem with only windows 8.1 domain login.. please suggest what to do and how this problem will be resolved..
    Regards
    sandeep Kumar

    Hi,
    Did it work correctly before when logging in with domain user account? If so, please try opening Control Panel > Credential Manager and remove the cached credential entry of the Outlook account, and then restart Outlook to test the issue again.
    See:
    https://support.microsoft.com/en-us/kb/2762344/en-us
    Please also try logging into your email account from webmail access to see if there is any error.
    Please let me know the result.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Problem with username and password

    I've been trying to set up a new back up from scratch, and after losing my network and wifi connection, I just about have it all working again.
    I have wireless connection, and I have the TC appearing correctly in Airport Utility, green light, reporting no issues, and seemingly ready to go.
    It shows up correctly when I select disk in TM's system preferences, and it shows up and connects OK i n Finder, under shared items.
    However, when I try to initiate a backup, its reporting a problem with the username and password, even though I'm entering the correct password.
    I've checked it in the keychain, changed it in AU to be sure etc, and when I enter a wrong password, it just tells me its the wrong password, rather than this longer message explaining there's a problem with the username or password.
    So I guess it could be with the username, but not sure what that might be - any ideas?
    The only thing I can think of is that the name appears as Time Capsule b7e45c in AU, but as Iain MacDonald's Time Capsule on Time Capsule b7e45c in TM's system prefs.
    Message was edited by: Iain MacDonald1

    Exactly the same here...error 107 is reported when I try to back up.
    There are 4 computers sharing the time capsule and only one of them reports this error.
    Is there a way to remove the sparsebundle and start again for this computer without having to lose all the others?

  • Problem with iWeb asking for username and password to access my public site

    Today for some reason anyone trying to access my site is being asked for username and password. I have made no changes that would require a password. My site has always been public.

    I am having the same problems. My site is public, I checked the settings on the public folder on MobileMe to ensure that it was public and did not require password protection either. But for some odd reason, even though I didn't change anything, my site's pages seem to require a user name and password to get into them. If one continues to click cancel, the page continues to load.
    This does not happen every single time, but it happens more often than not. I have tried this with my iMac, Macbook, as well as my iPod Touch, and I get this on all machines. My brother has tried logging in from another location using his Macbook Pro, and he gets the password prompt as well.
    I tried turning on password protection to the site and uploading the changes, then disabling password protection and reupping the changes once again. I've tried uploading entire site, instead of just changes, but the problem continues to persist. I definitely need this issue solved since this site is important to me.
    The site url is: http://www.globalwinetour.com
    Does anyone have any suggestions to rectify this, or does anyone have any idea what is causing it? Am I missing something here? Am I doing something wrong? Please help me out!
    Many thanks in advance!

  • I'm trying to access a forum that requires a user name and password.  When I do it on my mac it tells me the password is incorrect but when I do it on my iPad, I can access it without any problem.  I can confirm the username and password are the same

    I am trying to access a forum for which you need a username and password but it keeps telling me the username/password i've entered are incorrect.  Bizarrely, when I enter the same username/password combination on my iPad, it grants access without any problem. 
    What could be causing this, is it an issue with cookies, caches or similar.  How can I resolve it?  The forum administrator is at a loss as to what the problem is.

    Try the following steps in Safari to see if they help:
    1) First try clearing the Safari cache.  To do this pull down the Safari menu and select 'Empty cache...', then try logging into the site again.
    2) If the issue continues then reset Safari by pulling down the Safari menu and select'Reset Safari...'. You will be presented with a list of items that can be reset. I suggest selecting the 'Reset saved names and passwords', and 'Remove all website data' options at a minimum.
    Here is a list of the options and what they do. I pulled it from the Safari help page.
    Clear history:
    Clears the list of webpages you viewed.
    Reset Top Sites:
    Clears any changes you made to Top Sites, such as adding or pinning sites. If you also clear your history, your Top Sites page reverts to showing the webpage previews displayed when you first installed Safari.
    Remove all webpage preview images:
    Clears any thumbnail images Safari saved of webpages you viewed.
    Clear the Downloads window:
    Clears the list of files you downloaded from websites. Only the names are removed; the files themselves are still on your disk until you remove them.
    Remove all website icons:
    Removes website icons, which are small graphics that help identify sites on the Internet. You see them in the Safari address field and bookmarks list, and other places. These icons are stored on your computer.
    Remove saved names and passwords:
    Removes user names and passwords that Safari automatically fills in at websites that require them (if the AutoFill feature is turned on).
    Remove other AutoFill form text:
    Removes some personal information, such as telephone numbers, that Safari uses to automatically fill in forms on webpages (if the AutoFill feature is turned on). Removing AutoFill information does not remove information from your address book.
    Close all Safari windows:
    If you don’t close all Safari windows, someone could use the Back and Forward buttons to view the webpages you visited.
    Reset all location warnings:
    Clears any information websites saved about your location.
    Remove all website data:
    Removes cookies, tracking information, and other data that websites stored on your computer.

  • I am having trouble connecting MacBook Pro (10.6.7) to Novell server. I get incorrect username and password message. I can connect worksations running 10.5 without any problem. Any possible solution? Thanks, Ned

    I am having trouble connecting MacBook Pro (10.6.7) to Novell server. I get incorrect username and password message. I can connect worksations running 10.5 without any problem. Any possible solution? Thanks, Ned

    Having the exact same problem with connecting ML and Snow Leopard machines to a Windows 8.1 machine. Oddly enough, connecting and copying to/from works perfectly from a Mavericks machine, despite the problems reported about Mavericks regarding the exact opposite. An old thread, but did you find a solution?

  • Validation (check) Username and Password from the database

    I have a Login page in my website, username and password as a textbox not as a form, I have already save the admin username and his password in the database, now I need to check or validate these textboxes if  data entered to textbox  match the
    existing in the database then show a message box "Successful Login" if not "username or password invalid!!"
    Note : The website developed using c# Visual Studio Professional 2013
    Thank you

    Hi,
    Please check if the connection string is right and make sure the IIS application pool identity has enough permission to access database.
    For more information, please refer to the document:
    http://www.codeproject.com/Questions/328554/IIS-hosted-website-cannot-access-database
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Dear Apple I buy a refurbish iPhone 5s the IMEI ******* and ICCID ******** and i restored the device when i restored its locked to iCloud and i don't know the username and password i hope to help me about the problem asap.  Best regard

    Dear Apple
    I buy a refurbish iPhone 5s the IMEI ******** and ICCID ********** and i restored the device when i restored its locked to iCloud and i don't know the username and password i hope to help me about the problem asap.
    Best regard
    <Edited by Host>

    This is a user forum. You aren't talking to Apple here.
    Return your iPhone for a refund. There is no way to remove the Activation Lock. Apple won't get involved.
    <Edited by Host>

  • Wna problem - pops up for username and password

    We have setup wna according to Oracle's document. But when try to access the portal home page, instead of auto login with the windows username and password, it pops up the login pop-up and ask to enter username and password.
    Anyone encounter this before? thanks.

    Hello byroncheng. Welcome to the Apple Discussions!
    I suggest try using the AirPort Utility in "manual mode" instead for PPPoE setup...
    Either connect to the AEBSn's wireless network or temporarily connect your computer directly (using an Ethernet cable) to one of the LAN ports of the AEBSn, and then, using the AirPort Utility in Manual Mode, check these settings:
    Internet - Internet Connection
    o Connect Using: PPPoE
    o Username: <your PPPoE account username>
    o Password: <your PPPoE account password>
    o Verify Password: <re-enter your PPPoE account password>
    o Service Name: (Optional)
    o Connection Sharing: Share a public IP address
    Internet - PPPoE
    o Connection: Always On
    o Disconnect if Idle: Never
    o IP Address: (provided by ISP)
    o Subnet Mask: (provided by ISP)
    o Router Address: (provided by ISP)
    o DNS Server(s): (provided by ISP)
    o Domain Name: (provided by ISP)

  • Username and password problems with CS3

    I have Dreamweaver CS3 Version 9.0 Build 3481
    When I close Dreamweaver and reopen it I lose any usernames
    and passwords for FTP.
    How do I solve this? The 8.0.2. Updater does not work for my
    version.
    Thank you

    Adobe got back to me and gave me some info I'll share that
    might help others who have this problem. YES the fix did work for
    me, I'm running Dreamweaver 9 or the CS3 version and was losing
    user name and password each time I re-opened the program.
    You can find the fix at
    http://kb.adobe.com/selfservice/viewContent.do?externalId=3491671c&sliceId=2
    Basically it's a registry fix, appears when you have Explorer
    7.0 installed.
    Warning: Editing the Windows Registry incorrectly can cause
    serious problems that may require reinstalling your operating
    system. Adobe does not guarantee that problems caused by editing
    the registry incorrectly can be resolved. Edit the registry at your
    own risk.
    1. Launch the Registry Editor by clicking the Start button,
    choose Run, then type "regedit". In the Registry Editor, navigate
    to this folder:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\
    Explorer\User Shell Folders\
    2. See if there is a key called AppData.
    # Backup the Users Shell Folders registry branch as follows:
    1. Right-click the Users Shell Folders folder and select
    "Export".
    2. In the "Export range" section, choose "Selected branch".
    3. Save the .reg file to the desktop.
    4. If problems occur after editing the registry,
    double-clicking the .reg file will re-install that registry branch.
    # If the AppData key is missing, then perform the following
    steps. If the AppData key exists, then skip to Step 5.
    1. On the right side of the Registry Editor explorer pane,
    right-click in a blank area anywhere under the last key in the
    list. You should get a context menu that says "New" with a flyout
    menu.
    2. In the flyout menu, select "Expandable String Value" and
    name the new key AppData.
    # Right-click the new AppData key (or the existing one if it
    was already there), select Modify, and enter the following in the
    Value Data field: %USERPROFILE%\Application Data. If the values for
    the other keys in your User Shell Folders directory don't start
    with %USERPROFILE%, then use the value that your other keys use.
    For example, if your Local Settings key has a value of u:\Local
    Settings, then try usingu:\Application Data.
    # Open Dreamweaver, re-enter the FTP login information for
    one of your sites, and see if the FTP login is now saved when you
    close and re-open Dreamweaver.
    Worked for me.
    Thanks Adobe

Maybe you are looking for