CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2003
    Location
    philippines
    Posts
    26

    Question 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>>

  2. #2
    Join Date
    Jan 2002
    Location
    Halifax, NS, Canada
    Posts
    985
    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.

  3. #3
    Join Date
    Mar 2003
    Location
    philippines
    Posts
    26

    Thumbs up

    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
  •  





Click Here to Expand Forum to Full Width

Featured