|
-
March 26th, 2003, 08:24 PM
#1
how to remember who is logged in?
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!
<<dcm>>
-
March 26th, 2003, 08:51 PM
#2
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.
-
March 26th, 2003, 09:02 PM
#3
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
<<dcm>>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|