Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

counter and password

Status
Not open for further replies.

keizersoz

Programmer
Apr 22, 2004
67
0
0
BE
Hello all,

Two questions.
1)I'm collecting password and login from user. I was thinking how I could keep track of this information. With a cookie?

2) How do I make a counter that each time that my site is visited the counter increases with one?

thanks to all,
D.T.
 
1. Best not to store passwords in a cookie. It's a security risk. If you must, encrypt the cookie, or better yet, store some calculated value you can check against a persistant data store (maybe by storing some random text derived with the use of a strong random number generator like RNGCryptoServiceProvider in the System.Security.Cryptoraphy namespace).

2. You can have a value in a database or something and have a sproc increment the value with each logon.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top