Bhushan Bhasme

Bhushan Bhasme

  • NA
  • 812
  • 269.1k

Method getting called multiple Times?

Mar 7 2016 1:56 AM

Hello all,

I am using mvc 5 and wrote custom authentication attribute for my application.in that i have wrote user identity class and in that i am setting some login expiry time and one cookie say cookie-abc.i am maintaining one table as usersession table and i am inserting the value of cookie and expiry time into that table.Now when logged in user requestes for other api then i am comparing the same cookie and expiray time which i am getting with dbase values and i am updating the value of cookie and expiry time on each request for api in data base.

but because of multiple times call to Application_AuthenticateRequest method changes the value of cookie and unable to compare with old one.

so how to tackle this problem.

Please give me some suggestion

thanks in advance


Answers (1)