Ask a Question related to ASP.NET Security, Design and Development.
-
Pete #1
FOLLOW UP : Forms Authentication Randomly Times Out (Windows 2003)
Hi,
I didn't get any responses from the first post I made about this so I've
done a bit more investigation but I'm still having problems (but only in
Production (Win 2003) not development (XP Pro)). This leads me to think it's
a server config issue rather than code problem. Anyway here's the
problem....hope you can help.
My logged on users are randomly kicked out of my secure pages well before
the auth cookie expires. The persist cookie is working as I can see it
stored in the browser cache. Apparently their Forms Authenicated session has
expired however & there seems to be no pattern as to when it expires.
The standard user "Session" appears to be fine and lasts for the configured
length in Web.Config.
Here's what I've tried....
Changing the Forms Cookie name & Timeout.
Checking all code (it works exactly as expected on my XP Pro box)
Asked hosting provider if they broke it (said they didn't)
Is it possible that a setting in Machine.Config could be causing me these
issues? If so what section would it be?
Any ideas at all would be appreciated as I'm really stuck with this and my
users are not so happy.
thanks for looking
Pete
Pete Guest
-
Windows and Forms Authentication together ???
Hi, I am trying to create a site that will be used by both employees and external users, so both types of users trying to access the same pages. ... -
User Session issue with ASP.NET Forms authentication & Windows 2003
Hi, I first posted this query in just the aspnet ng but didn't get a reply so I'm posting here (probably more appropriate) Hope one of you guys... -
Windows and Forms Authentication
Hi, I need some help on building a security model for an intranet I am currently building. I am aware that Intranets lend themselves quite... -
Forms authentication with Windows authentication
Hi, I have an ASP.NET web site that uses IIS Basic Authentication and accesses an OLAP Server at various stages. The OLAP Server authentication... -
Forms / Windows Authentication
I have an application where I would like to present a nice HTML based login page but log the user in using Windows Authentication. I know that... -
Joe Audette #2
FOLLOW UP : Forms Authentication Randomly Times Out (Windows 2003)
I'm also seeing some evidence that when this occurs, that
Context.User is not an object, the problem seems to be
random and momentary, that is a few seconds later
Context.User is resolved as an object if the user tries
the page again.
To clarify, we are also using forms authentication.
about this so I've>-----Original Message-----
>Hi,
>I didn't get any responses from the first post I madeproblems (but only in>done a bit more investigation but I'm still havingleads me to think it's>Production (Win 2003) not development (XP Pro)). Thishere's the>a server config issue rather than code problem. Anywaypages well before>problem....hope you can help.
>
>My logged on users are randomly kicked out of my secureas I can see it>the auth cookie expires. The persist cookie is workingAuthenicated session has>stored in the browser cache. Apparently their Formswhen it expires.>expired however & there seems to be no pattern as tofor the configured>
>The standard user "Session" appears to be fine and lastsPro box)>length in Web.Config.
>
>Here's what I've tried....
>
>Changing the Forms Cookie name & Timeout.
>Checking all code (it works exactly as expected on my XPdidn't)>Asked hosting provider if they broke it (said theycausing me these>
>Is it possible that a setting in Machine.Config could bestuck with this and my>issues? If so what section would it be?
>
>Any ideas at all would be appreciated as I'm really>users are not so happy.
>
>
>thanks for looking
>
>Pete
>
>
>
>
>
>.
>Joe Audette Guest
-
Pete #3
Re: FOLLOW UP : Forms Authentication Randomly Times Out (Windows 2003)
Hi Joe,
Thanks for the reply. I've tested and I don't seem to be able to resume a
session again after being redirected back to the logon page.
I've tried pretty much everything, the only thing could be........has your
server got the Microsoft Security patch " Q813380"
[url]http://support.microsoft.com/?kbid=813380[/url] installed? I seemed to have these
problems after this patch was applied (can't be 100% sure though). Although
it doesn't sound like it should affect anything I guess anything is
possible. If you do have this patch could you let me know and I'll then try
applying to my XP dev box here to see if the issue can be replicated.
thanks
Pete
"Joe Audette" <respondtojoe_audette@yahoo.com> wrote in message
news:0fee01c3be76$a9841590$a501280a@phx.gbl...> I am having the same apparent problem using framework 1.1
> on win2k server. User's randomly get sent to the login
> page when they are not logged out. Although they get sent
> to the login page they are not really logged out, if they
> click a link to the page they were on they get right back
> in without logging in again. You might check and see if
> your situation is the same, that is are they truly logged
> out or just directed to the login page.
>
> Best Regards,
>
> Joe Audette> about this so I've> >-----Original Message-----
> >Hi,
> >I didn't get any responses from the first post I made> problems (but only in> >done a bit more investigation but I'm still having> leads me to think it's> >Production (Win 2003) not development (XP Pro)). This> here's the> >a server config issue rather than code problem. Anyway> pages well before> >problem....hope you can help.
> >
> >My logged on users are randomly kicked out of my secure> as I can see it> >the auth cookie expires. The persist cookie is working> Authenicated session has> >stored in the browser cache. Apparently their Forms> when it expires.> >expired however & there seems to be no pattern as to> for the configured> >
> >The standard user "Session" appears to be fine and lasts> Pro box)> >length in Web.Config.
> >
> >Here's what I've tried....
> >
> >Changing the Forms Cookie name & Timeout.
> >Checking all code (it works exactly as expected on my XP> didn't)> >Asked hosting provider if they broke it (said they> causing me these> >
> >Is it possible that a setting in Machine.Config could be> stuck with this and my> >issues? If so what section would it be?
> >
> >Any ideas at all would be appreciated as I'm really> >users are not so happy.
> >
> >
> >thanks for looking
> >
> >Pete
> >
> >
> >
> >
> >
> >.
> >
Pete Guest
-
Joe Audette #4
Re: FOLLOW UP : Forms Authentication Randomly Times Out (Windows 2003)
It doesn't look like we have that patch on our server.
We're not using FrontPage extensions. I'll be interested
to hear if you ever find a fix. I was not able to so I
had to scrap the automatic re-direction to login from the
web.config files and code my own checks and re-direction.
The difference with the login may be because we are using
win2k server, but the problem started suddenly after
running a long time with no problems. Its like the server
loses the session state context intermittently.
I've been trapping errors where references to
Context.User results in a not an instance of an object
error, but then just a fraction of a second later in my
exception handler I'm able to determine who the user is
by Context.User
Weird!!! I wish the Microsoft guys would respond to this
but I guess they won't until it affects more users.
Best Regards,
Joeable to resume a>-----Original Message-----
>Hi Joe,
>
>Thanks for the reply. I've tested and I don't seem to bepage.>session again after being redirected back to the logonbe........has your>
>I've tried pretty much everything, the only thing couldseemed to have these>server got the Microsoft Security patch " Q813380"
>[url]http://support.microsoft.com/?kbid=813380[/url] installed? Isure though). Although>problems after this patch was applied (can't be 100%anything is>it doesn't sound like it should affect anything I guessknow and I'll then try>possible. If you do have this patch could you let mebe replicated.>applying to my XP dev box here to see if the issue canmessage>
>thanks
>
>Pete
>
>
>
>"Joe Audette" <respondtojoe_audette@yahoo.com> wrote in1.1>news:0fee01c3be76$a9841590$a501280a@phx.gbl...>> I am having the same apparent problem using frameworksent>> on win2k server. User's randomly get sent to the login
>> page when they are not logged out. Although they getthey>> to the login page they are not really logged out, ifback>> click a link to the page they were on they get rightlogged>> in without logging in again. You might check and see if
>> your situation is the same, that is are they trulysecure>> out or just directed to the login page.
>>
>> Best Regards,
>>
>> Joe Audette>> about this so I've>> >-----Original Message-----
>> >Hi,
>> >I didn't get any responses from the first post I made>> problems (but only in>> >done a bit more investigation but I'm still having>> leads me to think it's>> >Production (Win 2003) not development (XP Pro)). This>> here's the>> >a server config issue rather than code problem. Anyway>> >problem....hope you can help.
>> >
>> >My logged on users are randomly kicked out of mylasts>> pages well before>> as I can see it>> >the auth cookie expires. The persist cookie is working>> Authenicated session has>> >stored in the browser cache. Apparently their Forms>> when it expires.>> >expired however & there seems to be no pattern as to>> >
>> >The standard user "Session" appears to be fine andXP>> for the configured>> >length in Web.Config.
>> >
>> >Here's what I've tried....
>> >
>> >Changing the Forms Cookie name & Timeout.
>> >Checking all code (it works exactly as expected on mybe>> Pro box)>> didn't)>> >Asked hosting provider if they broke it (said they>> >
>> >Is it possible that a setting in Machine.Config could>>> causing me these>> stuck with this and my>> >issues? If so what section would it be?
>> >
>> >Any ideas at all would be appreciated as I'm really>> >users are not so happy.
>> >
>> >
>> >thanks for looking
>> >
>> >Pete
>> >
>> >
>> >
>> >
>> >
>> >.
>> >
>
>.
>Joe Audette Guest
-
Pete #5
Re: FOLLOW UP : Forms Authentication Randomly Times Out (Windows 2003)
Well there goes my theory on the patch.
My site was same, worked flawlessly for months then all of a sudden I get
this issue.
Strangly it is still ok on my XP box so I know it's not code. I still want
ot use the built
in Forms authentication rather than code my own but if Microsoft can't help
out (hint hint)
then I might have to rewite it all.
One other thing I did notice last night was that I could re-establish a
session after closing the browser and re-opening again. I guess this just
shows that the cookie has been persisted correctly and can still
authenticate the user. Unfortunatley I still got a random timeout a few
minutes later......
Another option I was thinking of was moving hosting provider, could be just
a way my host has configured something, but I'm not 100% sure.
I'll let you know if this ever gets sorted, but I'm not holding my breath as
it's been the best part of a month now.
Microsoft please help us........
regards
Pete
--
Cheers
Pete
XBOX Live Leagues & Tournaments
[url]http://www.xboxracing.net/[/url]
"Joe Audette" <respondtojoe_audette@yahoo.com> wrote in message
news:1153501c3bf69$73e059a0$a601280a@phx.gbl...> It doesn't look like we have that patch on our server.
> We're not using FrontPage extensions. I'll be interested
> to hear if you ever find a fix. I was not able to so I
> had to scrap the automatic re-direction to login from the
> web.config files and code my own checks and re-direction.
> The difference with the login may be because we are using
> win2k server, but the problem started suddenly after
> running a long time with no problems. Its like the server
> loses the session state context intermittently.
> I've been trapping errors where references to
> Context.User results in a not an instance of an object
> error, but then just a fraction of a second later in my
> exception handler I'm able to determine who the user is
> by Context.User
> Weird!!! I wish the Microsoft guys would respond to this
> but I guess they won't until it affects more users.
>
> Best Regards,
>
> Joe> able to resume a> >-----Original Message-----
> >Hi Joe,
> >
> >Thanks for the reply. I've tested and I don't seem to be> page.> >session again after being redirected back to the logon> be........has your> >
> >I've tried pretty much everything, the only thing could> seemed to have these> >server got the Microsoft Security patch " Q813380"
> >[url]http://support.microsoft.com/?kbid=813380[/url] installed? I> sure though). Although> >problems after this patch was applied (can't be 100%> anything is> >it doesn't sound like it should affect anything I guess> know and I'll then try> >possible. If you do have this patch could you let me> be replicated.> >applying to my XP dev box here to see if the issue can> message> >
> >thanks
> >
> >Pete
> >
> >
> >
> >"Joe Audette" <respondtojoe_audette@yahoo.com> wrote in> 1.1> >news:0fee01c3be76$a9841590$a501280a@phx.gbl...> >> I am having the same apparent problem using framework> sent> >> on win2k server. User's randomly get sent to the login
> >> page when they are not logged out. Although they get> they> >> to the login page they are not really logged out, if> back> >> click a link to the page they were on they get right> logged> >> in without logging in again. You might check and see if
> >> your situation is the same, that is are they truly> secure> >> out or just directed to the login page.
> >>
> >> Best Regards,
> >>
> >> Joe Audette
> >> >-----Original Message-----
> >> >Hi,
> >> >I didn't get any responses from the first post I made
> >> about this so I've
> >> >done a bit more investigation but I'm still having
> >> problems (but only in
> >> >Production (Win 2003) not development (XP Pro)). This
> >> leads me to think it's
> >> >a server config issue rather than code problem. Anyway
> >> here's the
> >> >problem....hope you can help.
> >> >
> >> >My logged on users are randomly kicked out of my> lasts> >> pages well before
> >> >the auth cookie expires. The persist cookie is working
> >> as I can see it
> >> >stored in the browser cache. Apparently their Forms
> >> Authenicated session has
> >> >expired however & there seems to be no pattern as to
> >> when it expires.
> >> >
> >> >The standard user "Session" appears to be fine and> XP> >> for the configured
> >> >length in Web.Config.
> >> >
> >> >Here's what I've tried....
> >> >
> >> >Changing the Forms Cookie name & Timeout.
> >> >Checking all code (it works exactly as expected on my> be> >> Pro box)
> >> >Asked hosting provider if they broke it (said they
> >> didn't)
> >> >
> >> >Is it possible that a setting in Machine.Config could> >> >> causing me these
> >> >issues? If so what section would it be?
> >> >
> >> >Any ideas at all would be appreciated as I'm really
> >> stuck with this and my
> >> >users are not so happy.
> >> >
> >> >
> >> >thanks for looking
> >> >
> >> >Pete
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >.
> >> >
> >
> >.
> >
Pete Guest
-
Brian Scott #6
Re: FOLLOW UP : Forms Authentication Randomly Times Out (Windows 2003)
Not much to add beyond what has been said, just want to add my comapny
as one affected by this. We are seeing the same problem recently
after the application ran fine for a number of months. The server is
Win2k and we are using Forms Authentication. There sems to be no
pattern to the users being redirected to the login page. I'll have
them test the next time if they are indeed logged out or just
redirected.
"Joe Audette" <respondtojoe_audette@yahoo.com> wrote in message news:<027f01c3be79$52504b60$a101280a@phx.gbl>...> I'm also seeing some evidence that when this occurs, that
> Context.User is not an object, the problem seems to be
> random and momentary, that is a few seconds later
> Context.User is resolved as an object if the user tries
> the page again.
>
>
> To clarify, we are also using forms authentication.
>Brian Scott Guest



Reply With Quote

