Auto logoff

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello all!

Any idea how I ca set up a Auto logout. If the program is inactive for 3
minutes or wahtwerv. I know I can use a timer. But what declartionon the
form would be best used? Or maybe there is a better way?

TIA!!

Rudy
 
Any idea how I ca set up a Auto logout. If the program is inactive for 3
minutes or wahtwerv. I know I can use a timer. But what declartionon the
form would be best used? Or maybe there is a better way?

You wrote nothing about technology you are using. Is it WinForms?
WebForms? Client server of some sort?

I think the best way is to check last user's activity time in
business layer to decide we should process request or redirect user to
login page instead.
Don't "trust" client side code, the malicious user can override your
settings and the security will be lost.
 

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

Back
Top