Click here to Skip to main content
15,902,636 members
Please Sign up or sign in to vote.
1.00/5 (5 votes)
See more:
In my hosted web-site in asp.net c#

C#
 my users are able to register but the problem is when they try to login after register they 
can't able to login, means data can not be retrived. may be the reason is that they are access the 
basedata from a device or system at other location and different one.

In web.config file i do write a mechine key.


please help

What I have tried:

In web.config file i do write a mechine code.

I maens let a take example when i login through my system I can log in to the system. but when i login from my mobile i can't able to login, it gives a password is wrong message.(which i gave in validation control).
Posted
Updated 3-Jun-16 8:57am
v10
Comments
OriginalGriff 3-Jun-16 3:25am    
What are you using for login and registration?
We cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Use the "Improve question" widget to edit your question and provide better information.
Kishor-KW 3-Jun-16 11:37am    
Sorry for this. I have updated question. please suggest your best. thank you
Prateek Dalbehera 3-Jun-16 6:24am    
As told by Griff, please provide details to get any solution...
Kishor-KW 3-Jun-16 11:39am    
yes sir. apologized for this. I have updated question,please help
ZurdoDev 3-Jun-16 15:41pm    
You have to debug it. How would we know why you can't login via mobile? We can't see anything that you have.

1 solution

For starters, never do that.
Storing passwords in clear text is a very, very bad idea: A Code Crime[^] in fact.
Have a look here: Password Storage: How to do it.[^] and it explains why, and what to do about it.
The best way is not to "brew your own" but to use Membership: Introduction to Membership[^] it handles it all for you, and provides extra security in that if an unauthorised person tries to access "secure" pages the system itself will refuse them permission and send them to the login page.

If you must continue with your version, then follow the instructions in the tip, and hash your passwords - and use the debugger to follow your code through and work out exactly what is going on. We can't do that for you because it is dependant to a greater or lesser extent on your DB and the data it holds, and we don't have access to that so we can't run it under the same conditions, or see what is being returned.
 
Share this answer
 
Comments
Kishor-KW 3-Jun-16 11:55am    
Ok sir, but on local host it works fine. also on my system it works. but when i tried to login from my mobile or other system it gives password does not match error.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900