mardi 5 avril 2016

Use claims instead of cookie

When user is logging I want store his ticket and addictional data about him.

I can use cookie and after the looging store this data, but I heard that better manner is use asp claims, but I don't know how to use it, because I working on mvc 3 and when I browsing the net I always see that claims are connected with user manager class or owin architecture.

http://ift.tt/189tFMB

I don't use user maneger class because I have own table which user login and pass are stored, so I want to achieve.

  1. During the loggging I want to create the claim (user email is a key) and save id.
  2. Load my claim value.

Aucun commentaire:

Enregistrer un commentaire