Limit access time with asp.net membership

Hi,

I have a webapplication where I would like to extend the membership possibilities with a couple functions that I haven't found anywwhere.

I would like to set a date and time for when users automatically are locked out from the system,.
I would like to be able to force every user to enter a new password on login every three month.

Does anyone know if these features are availbable in some way in asp.net membership (I know they are in Active directory, but I don't plan to use that), or to I have to create my own solution for it?

Thanks for help!

Peter
Peter NordbergIT ManagerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

justinbilligCommented:
Unless you set thier active directory information to expire or to require new user validation your going to have to create a solution for this. It is fairly simple to do so. You can validate user credentials & membership information on login.
0
vvnCommented:
Well I'm using membership now and haven't seen that kind of functions.
You will have to do it all by yourself but the login control has an event where you can hook in

Sub OnAuthenticate(ByVal sender As Object, ByVal e As AuthenticateEventArgs)

You can put your own code in this to check what the status is of your user trying to login.
- When everything is ok
- you can use Membership.ValidateUser( username, password)

- when everything is not ok
- you can set e.Authenticated = false




0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.