Click to See Complete Forum and Search --> : how to remember who is logged in?


dcm
March 26th, 2003, 07:24 PM
im building a web application using coldfusion where the usual login comes first then the viewing / editing of data...
now depending on who's logged in, only specific fields (or columns [since im displaying table contents]) can be modified.
for example, if:
UserA is logged in.
UserA can only modify the Job Grade field

UserB is logged in
UserB can only modify Salary field

others (who successfully loggedin)
can only view data [no editing]

any solution?

u can give javascript if its not possible with coldfusion.
just hope u comment it coz im just a newbie to it
but i got a moderate knowledge on vb and other dos programming like pascal, (little c/c++) so id probably get the logic.

thanks a lot!

Goodz13
March 26th, 2003, 07:51 PM
You can keep track of who's logged in via session variables. You mentioned "coldfusion." I don't know much about coldfusion, but I do know that it is server side. Why not keep track of users/passwords and user rights in a Database?

User logges in,
check password from DB
check user rights from DB
keep track of user via session variables.

dcm
March 26th, 2003, 08:02 PM
thanks goodz!
but im new to session variables when it comes to webprogramming... although in regular vb programming its easier but in the web, changes page after page...
can u please, please spare more of ur time teaching me basics on that session variables? i know wat u mean, i just dont know how to do it in the web...

thanks a lot

:)