This is a migrated thread and some comments may be shown as answers.

Automatic Logoff using Timer in Prometheus

3 Answers 101 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ayyappan
Top achievements
Rank 1
Ayyappan asked on 21 Mar 2008, 07:10 PM

Hi

I'm using prometheus 2007.3.1425.35 controls for my C# project.
I need to log off the user if the user is inactive for eg 20 mins.Can i do it with any of the controls(Timer) in prometheus?

I dont find any equivalent control for RadTimer in Prometheus.

Please provide me any samples if you could.

Thanks

-Ayyappan

3 Answers, 1 is accepted

Sort by
0
314
Top achievements
Rank 1
answered on 22 Mar 2008, 03:38 AM
Why don't use VS timer function?
0
Shaun Peet
Top achievements
Rank 2
answered on 23 Mar 2008, 09:42 PM
If you're using Forms Authentication then you can set the expiration of the cookie in the web.config.  This would be by far the easiest way to accomplish what you're after.

If you're trying to give a "You will be automatically logged out in XX minutes of inactivity" you could simplify that by saying "You will be automatically logged out in 20 minutes of inactivity.  Last activity was HH:MM:SS".
0
Par
Top achievements
Rank 1
answered on 25 Mar 2008, 06:46 PM
Thanks for the reply Shaun.

But i need to show the countdown with the Cancel button before 30 seconds of session expiry.

If the user cancels it,session should not be terminated.Otherwise the user should be logged out and redirected login page.


Thanks
-Ayyappan
Tags
General Discussions
Asked by
Ayyappan
Top achievements
Rank 1
Answers by
314
Top achievements
Rank 1
Shaun Peet
Top achievements
Rank 2
Par
Top achievements
Rank 1
Share this question
or