Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Windows authentication times out (?)

Reply
Thread Tools

Windows authentication times out (?)

 
 
Lars-Erik
Guest
Posts: n/a
 
      10-22-2009
Hi!

Short prob. description: Windows auth popup is triggered now and then when
using a site, not only the first time.

I've recently introduced windows authentication to an asp.net site
previously using only forms auth. The way I did it was to change from Forms
to Windows in web.config, but still using the forms cookie. I trap the
authentication attempt in Application_AuthorizeRequest, get the windows user
name from HttpContext.Current.User, then get some info from a db, put that in
a FormsAuthenticationTicket and let FormsAuth create a cookie etc.
The cookie is sliding, and I do RenewTicketIfOld so it shouldn't time out.

Still, something in production makes users have to re-authenticate after a
short time when idling, possibly also when not. (5-10-20 mins)
I haven't had the chance to test this thoroughly, but it does not seem to
have anything to do with the session timeout which I've set to one hour.

The server is on the same domain as the domain controller, but the windows
auth popup comes up (I've turned on win auth in IIS) anyway, and it pops up
not only the first time (which we want), but regularly like described after
that.

Anyone know what I can do to make the server remember the windows user, or
is there some other component somewhere I should do something to?

--
Lars-Erik
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forms Authentication Fails some times and not some times??? =?Utf-8?B?bWF2cmlja18xMDE=?= ASP .Net 0 03-28-2006 10:48 PM
SetAuthCookie works some times and fails some times? =?Utf-8?B?bWF2cmlja18xMDE=?= ASP .Net 0 03-23-2006 09:24 PM
Boot Times and Recycle Times Moo Digital Photography 3 11-20-2004 12:31 PM
FOLLOW UP : Forms Authentication Randomly Times Out (Windows 2003) Pete ASP .Net Security 5 12-16-2003 07:38 PM
Why is the Constructor called 4 times but the Destructor 5 times? djskrill C++ 9 10-01-2003 07:18 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57