PDA

View Full Version : getting a userID into db


Russell Collins
07-09-2009, 05:13 AM
Hi,

I want to get a userID to input in thru DA to a mysql db. (For security logging of users when inserting content)
I did it before but after I stuffed the page and redoing it again I cant seem to get it.
Is this where I would use a cookie.

Any Ideas ?

Regards
Russ

Ray Borduin
07-09-2009, 07:33 AM
You would use SecurityAssist to create a login that would set a session variable with the UserID. Then you would refer to that session variable when inserting with DataAssist to associate that insert with the logged in user.

Russell Collins
07-09-2009, 06:55 PM
Thanks Ray,

That would explain why I had it working before, I deleted the Security assist code.

Regards

Russ