Click here to Skip to main content
15,902,636 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello

I have a project in asp.net and I want that no one can login after 6 p.m.

It will active at 8 a.m. and stop at 6 p.m.


Thanks................
Posted
Comments
OriginalGriff 3-Mar-12 6:54am    
Local time?
Server Time?
What have you tried?
What are you using for login at the moment?
Sergey Alexandrovich Kryukov 3-Mar-12 20:41pm    
Of course you can, but why?!
--SA

1 solution

Write an IHTTPModule and handle the BeginRequest event, check for the time and handle appropriately. As OriginalGriff pointed out you'll need to address the differences between local and server time.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900