This Is A Sample Plagin, Tracks Users Login And  Store IP Address, Timestamp, Username & User ID In Database And Also Send Email To Admin. Gets IP Address In Better A Way. You Can Enable Or Disable Sending Email(Enable by Default). You Can Enable Or Disable Tracking Supper User's Login(Disable by Default). *Also supported in 3.0 or higher (tested on 2.5.11 & 3.2.2)