authentication with FormsAuthenticationTicket

0

I need to persist the inclusions, changes, and deletions that users make on the system, every single move the user makes, so I created a Id in the tables of my BD to know which user is writing the data.

I was using the Session , when the user logged in I assigned the session with the Id of the user in BD , this caused several problems because IIS and sessions clean

So I decided to use FormsAuthenticationTicket since I can use role in user_data , and login , but I can not assign ID then I created a Select in the DAO that returns the ID of my filter user in the login_name that is unique. But I realized that it slowed down as the Session , for obvious reasons.

  • Would you like to know if this is the best practice? or
  • Is there a better solution?
  • asked by anonymous 05.12.2017 / 13:02

    1 answer

    0

    You can use a base class with the attributes clientId, createDate, lastDate, isDeleted to have control of what you are editing or creating, but in this case it will always be the last edit done

    If you want all the details of CRUD you need to make a log system

        
    05.12.2017 / 14:25