Implementing FormsAuthentication login count. Possible?

N

Nick Gilbert

Hi,

Is there any way to implement a login count if you're using
FormsAuthentication? All the events seem to fire every page view, or do
not fire at all.

What I want is, every time a user logs in, or returns to the site having
previously checked the "remember me" box (thereby creating a new
session) I would like to increment a login counter.

Currently it seems it would only be possible to increment a page view
counter - not a "session" counter.

Nick...
 
C

ChigbuaUmuenu

You have to do this at Session_Start. Update increment a LogInCount by 1.
This LogInCount coud be a field in a table in your database. You can then
present this count to the user or retrieve it for other things.
 

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,994
Messages
2,570,222
Members
46,810
Latest member
Kassie0918

Latest Threads

Top