reauthenticate users 
July 1st, 2009, 07:20 PM
| | Member | | Join Date: Jan 2009
Posts: 47
| | |
When a user cllicks into a specific form, I would like to have them re-authenticate due to the personal content of the form they're accessing. I'm not sure what I need to do to get this done. They already have to login to the appllication, but need the second layer of security. I would also like them to be logged out after 15 minutes of inactivity. Anyone have any ideas?
| 
July 2nd, 2009, 02:57 PM
|  | Site Moderator | | Join Date: Oct 2006 Location: The Great White North :)
Posts: 4,940
Provided Answers: 8 | | | re: reauthenticate users
What type of authentication are you using?
-Frinny
| 
July 2nd, 2009, 03:03 PM
| | Member | | Join Date: Jan 2009
Posts: 47
| | | re: reauthenticate users
Using forms authentication to get into the Intranet.
| 
July 2nd, 2009, 03:10 PM
|  | Site Moderator | | Join Date: Oct 2006 Location: The Great White North :)
Posts: 4,940
Provided Answers: 8 | | | re: reauthenticate users
Well the timeout part is pretty easy.
You just set the forms authentication cookie to expire after 15 minutes.
The "re-authentication" part is going to be a bit more tricky.
I'm not entirely sure how you'd do this but maybe place the super-sensitive content in a separate folder with it's own web.config file. This section of the site would have to be set up using the same authentication provider as the regular-sensitive content....and would have it's own Login feature which would issue another authentication cookie that would expire after the user's finished with the super-sensitive content.
-Frinny
| 
July 2nd, 2009, 03:23 PM
| | Member | | Join Date: Jan 2009
Posts: 47
| | | re: reauthenticate users
I've done that, but they would like the cookie to expire when the user leaves the form. Is there any way to do that without adding a logout button?
| 
July 2nd, 2009, 03:39 PM
|  | Site Moderator | | Join Date: Oct 2006 Location: The Great White North :)
Posts: 4,940
Provided Answers: 8 | | | re: reauthenticate users
Yes...but it's not easy and doesn't work Opera.
First read this article then read this post...I'm still in the middle of writing an article on the topic.
-Frinny
|  | | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 225,662 network members.
|