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

C / C++ / MFC

 
QuestionSearch a proper method for free and delete a struct array? Pin
chen20-Jul-02 4:35
chen20-Jul-02 4:35 
AnswerRe: Search a proper method for free and delete a struct array? Pin
Michael Dunn20-Jul-02 6:37
sitebuilderMichael Dunn20-Jul-02 6:37 
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 
How can I authenticate a user in a n-tier application made of a C# Client, a XML Managed C++ Web Service and an SQL Server Database.

The database is 2 tables with each rown contains:
the users table contains the columns:
-username
-password

the personal data table contains the colums:
-username (with a relationship with the first table)
-name
-surname
-address
-phone

The XML Web Service consists of two methods:
Login(username, password)
GetData(?)
UploadChanges(?)

Now It's start to be confusing for me!

I want that only the correct user, authenticated using the data in table Users, can modify the corresponding row in the PersonalData table.

How I accomplish this?

I could setup a cookie like mechanism that asks username and password, gives them to the Login() method, that returns a SessionVariable, and stores them in the PersonalData table. After when a user wants to GetDataFromDatabase of UpdateChanges, it has to give the variable back, and the update is made with a SQL statement like (SELECT FROM PersonalData WHERE CurrentSession = XXX)

Is this method reliable?

Is there a simpler method that I don't know?

Is there any kind of serverside security? Maybe in the SQL Database?

Thanks to anybody who will answer me.

"Nelle cose del mondo non e' il sapere ma il volere che puo'."
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 
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 

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.