Click here to Skip to main content
15,920,632 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralATL/WTL vs MFC Pin
rsasalm_20-Jul-02 3:57
rsasalm_20-Jul-02 3:57 
GeneralRe: ATL/WTL vs MFC Pin
Tim Smith20-Jul-02 4:13
Tim Smith20-Jul-02 4:13 
GeneralHiding an application from the average user. Pin
Anonymous20-Jul-02 2:21
Anonymous20-Jul-02 2:21 
GeneralRe: Hiding an application from the average user. Pin
Ed Gadziemski20-Jul-02 3:07
professionalEd Gadziemski20-Jul-02 3:07 
GeneralRe: Hiding an application from the average user. Pin
Anonymous20-Jul-02 4:35
Anonymous20-Jul-02 4:35 
GeneralUser Authentication Pin
laphijia20-Jul-02 2:19
laphijia20-Jul-02 2:19 
GeneralRe: User Authentication Pin
Rama Krishna Vavilala20-Jul-02 4:01
Rama Krishna Vavilala20-Jul-02 4:01 
GeneralRe: User Authentication Pin
Paul Ingles20-Jul-02 15:24
Paul Ingles20-Jul-02 15:24 
A good way of doing it is ensuring that the SELECT statements are executed against the entered username and password.

For example, on the page where they can edit their details, you could change it so that it will only fill out the form with details from the DB where the user + pass = what was entered. By doing a join with the two tables you can return all the information in one query, and by filtering it this way if the pass or username is wrong, it won't be returned.

Likewise when returning the data back, only update the rows where the user + pass match, for example create a view which joins the two tables (in effect returning user details) and limiting it based on user + pass.

Another way is to store the username in a cookie, as well as a hashed version (with some random text appended). Then, everytime a page is loaded, check that the hashed value matches a hash generated at the time the page is executed. This way, you can be sure that its been issued by you, and not hacked. Then you just have to check its a valid username, if it is, then all is well.

Let me know if there's something I need to explain a little better.
GeneralCreate compoent to be used in IE Pin
Anonymous19-Jul-02 22:55
Anonymous19-Jul-02 22:55 
GeneralRe: Create compoent to be used in IE Pin
Nish Nishant20-Jul-02 2:20
sitebuilderNish Nishant20-Jul-02 2:20 
GeneralRe: Create compoent to be used in IE Pin
Anonymous20-Jul-02 3:50
Anonymous20-Jul-02 3:50 
GeneralRe: Create compoent to be used in IE Pin
Anonymous20-Jul-02 4:00
Anonymous20-Jul-02 4:00 
Generalactivex installers... Pin
l a u r e n19-Jul-02 22:29
l a u r e n19-Jul-02 22:29 
GeneralRe: activex installers... Pin
super20-Jul-02 1:29
professionalsuper20-Jul-02 1:29 
GeneralRe: activex installers... Pin
Anders Molin20-Jul-02 13:23
professionalAnders Molin20-Jul-02 13:23 
GeneralVC 7.0 migration Pin
unknown soldier19-Jul-02 21:18
unknown soldier19-Jul-02 21:18 
GeneralRe: VC 7.0 migration Pin
Anonymous19-Jul-02 21:53
Anonymous19-Jul-02 21:53 
GeneralRe: VC 7.0 migration Pin
unknown soldier19-Jul-02 22:05
unknown soldier19-Jul-02 22:05 
GeneralRe: VC 7.0 migration Pin
Nish Nishant19-Jul-02 22:43
sitebuilderNish Nishant19-Jul-02 22:43 
GeneralRe: VC 7.0 migration Pin
unknown soldier19-Jul-02 23:00
unknown soldier19-Jul-02 23:00 
GeneralRe: VC 7.0 migration Pin
Anonymous20-Jul-02 2:50
Anonymous20-Jul-02 2:50 
Generalaccessing control in view1 from view2 - error says control not a member of CView* Pin
ns19-Jul-02 20:10
ns19-Jul-02 20:10 
GeneralI'm working around by doing a sendmessage Pin
ns19-Jul-02 20:18
ns19-Jul-02 20:18 
GeneralRe: accessing control in view1 from view2 - error says control not a member of CView* Pin
l a u r e n19-Jul-02 22:33
l a u r e n19-Jul-02 22:33 
GeneralRe: accessing control in view1 from view2 - error says control not a member of CView* Pin
Ravi Bhavnani20-Jul-02 6:29
professionalRavi Bhavnani20-Jul-02 6:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.