473,386 Members | 1,803 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

storing login, password and server name in the registry

Sam
Hi,
I'd like to create a form for my user to enter login information. This
information should be stored somewhere, best way I guess is the
registry. Then if a user attempt to login on the same machine later on,
the form will be filled in automatically from the registry.

Is it possible ? How can I do that ? I don't know how to access the
registry ?

Thx

Nov 21 '05 #1
14 1063
Sam,

Yes this is easily posible but strongly recomended not to do.

The most "easy" and in my opinio best way to do this is to use the principal
namespace
http://msdn.microsoft.com/library/de...yprincipal.asp

Never store user passwords in your registry, if you cannot do the above than
you can get the user with

Environment.username

I hope this helps,

Cor
Nov 21 '05 #2
Sam
my mistake, I do NOT intend to store the password. However I intend to
store other information, so I understand I can get the username with
Environment.username, but then how do I store my txtboxes values in the
registry ?

thx

Nov 21 '05 #3
Sam,

Very very simple by using this class.
http://msdn.microsoft.com/library/de...ClassTopic.asp

I hope this helps,

cor
Nov 21 '05 #4
Sam
Cor,
Could you send the link again ? I'm not authorized to view this page,
it must belong to your session or something !

Thx

Nov 21 '05 #5
Sam
Actually, would that be better to store this information in a XML file
instead ?

Nov 21 '05 #6
http://www.kjmsolutions.com/xmlsettings.htm

"Sam" <sa**************@voila.fr> wrote in message
news:sa**************@voila.fr:
Actually, would that be better to store this information in a XML file
instead ?


Nov 21 '05 #7
Sam,

Storing information about the configuration as the last settings from the
screen is for me the registry. Setting information about the application is
for me an xml.file

I hope this gives ideas

The link is a complete open link to msdn.microft.com

Cor
Nov 21 '05 #8
Kelly,

Can you try that link to MSDN in my message?

Cor
Nov 21 '05 #9
Sam
scorpion53061,
I like that, it's more what I'd like to do. However, how can I set the
XML file to be specific to each user. If it's shared by everyone, it's
not gonna work.

Regards

Nov 21 '05 #10

If you are referring to the registry link yes it came up when I clicked
on it.

"Cor Ligthert" <no************@planet.nl> wrote in message
news:no************@planet.nl:
Kelly,

Can you try that link to MSDN in my message?

Cor


Nov 21 '05 #11

Create a XML file for each user. When a new user wants to use the
program it should create the XML file specific to them.
"Sam" <sa**************@voila.fr> wrote in message
news:sa**************@voila.fr:
scorpion53061,
I like that, it's more what I'd like to do. However, how can I set the
XML file to be specific to each user. If it's shared by everyone, it's
not gonna work.

Regards


Nov 21 '05 #12
Sam
Actually I found a better way: Isolated Storage :)

Nov 21 '05 #13

Just be careful Sam. Isolated Storage is great but you are going to have
to ask your users to adjust security settings in the Framework to make
it work.

"Sam" <sa**************@voila.fr> wrote in message
news:sa**************@voila.fr:
Actually I found a better way: Isolated Storage :)


Nov 21 '05 #14
Sam
!
What kind of security settings ? That's very important ! Would that be
the same kind as the registry ?

Nov 21 '05 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Wayne Smith | last post by:
Applies to: Microsoft FrontPage 2000, Microsoft Access 2000, IIS 5.0 Operating System: Microsoft Windows 2000 Professional I am trying to protect a portion of a web site by allowing users to...
5
by: Phillip Armitage | last post by:
I've spent the better part of two days checking out PHP, javascript and numerous other language sites trying to find what I figure should be be an easy web script page. Essentially what I want is a...
7
by: Cemal Karademir | last post by:
Hi, I'm workin on a small Login page/program with asp.net. It uses an MS-Access database that looks like this: USERID | NAME | PASSWORD _________________________________ 1 ...
3
by: Jon Paal | last post by:
using VWD and asp.net 2.0 how do I enable clientside validation in ligin control ? Following code does not produce popup alerts or red asterisks . ==================== <div id="content">...
0
by: ruju00 | last post by:
I am getting an error in Login() method of the following class FtpConnection public class FtpConnection { public class FtpException : Exception { public FtpException(string message) :...
4
tolkienarda
by: tolkienarda | last post by:
Hi all I work for a small webdesign company and we have remote hosting. i built a mysql database with phpmyadmin on the server. i then downloaded and modified a php login page. i am continuing to...
0
bartonc
by: bartonc | last post by:
#Boa:Dialog:DBConnectDialog import wx ##"""Given a set if login specs, create a dbServer instance and ## ensure that there is a valid, open connection to the database. ## If not, set the...
2
by: dgbergman | last post by:
I have created a php login page in my site for my company. The goal is to get people into members area. Below is a list of steps that I take to create my login page in Dreamweaver CS3, can some one...
3
by: satishknight | last post by:
Hi, Can some one tell me how to change the validation sequence for the code pasted below, actually what I want it when any one enters the wrong login information (already registered users) then it...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.