Logging when user logs on - ASPNET 2.0

A

Alain Hogue

I need a way to record when a user log on to my website, even if he returns
eventually and he had set the "Remember me" form cookie. I basically want to
known when someone actually use my application and when. I also want to have
that information only once per visit.

For exemple if the user register with my website then I want to be notified
once. Then the next time, and everytime after that, when he come back I want
to receive a notification again, but only once. If he click the checkbox
"Remember Me" in the "Login" control I want to known that he came back to my
website.

I have tried to use the "FormsAuthentication_OnAuthenticate" in the
"Global.asax" but this event is fired numerous time per request and I dont
even have access to the Session object to set a flag.

Please help!
 

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

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top