Need to know when user log's in again.

E

Edwin Knoppert

I have a forms based authentication.
On each Application_AuthenticateRequest() i set the ticket again.
I want to store the last login date/time
On Session_Start() the user isn't authenticated yet.
On Application_AuthorizeRequest() i can not set a session var to prevent
multiple writes.
The App.. events are called on each request.

What is the best approach?
I'm looking for a one-time executed event when the user get's authenticated.
I do not really care for session start, even that one is called multiple
times.
(Prob. due a redirect() i have here)


Thanks!
 
C

cbDevelopment

Why not do it in the Login page before you redirect after a successful
login?

Neither Session start nor that global.asax event are appropriate for this
kind of action.

--
 
E

Edwin Knoppert

The next time login is skipped (cookie) and the main page is executed.
Of course, Session_Start should do, but it's no guarantee the user is
actually logged in.

There seems not to be any solid one-time event being executed for this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top