Re: Forms authentication BIG issue
- From: Brock Allen <ballen@xxxxxxxxxxxxxxxxx>
- Date: Tue, 02 Aug 2005 16:04:32 -0700
Forms authentication does not relate to session at all, except that they both use cookies to track the user, so changing session will have no effect on the forms authentication (unless you've somehow built a relationship between them in your code).
As for your problem, I'd suggest on your login page to check to see if the user is logged in and if so show their current login on the form. It feels like to me that your user is logged in and they access a resource where they're not authorized. Even if you're logged in you'll be sent back to the login page to provide credentials for the resource you were just trying to access.
-Brock DevelopMentor http://staff.develop.com/ballen
Hello, I have an application that is using forms authentication and it seems to be working fine most of the time. Unfortunatelly, it sometimes just redirects me to the login screen. It seems that the session timed out. But I login again and do the same action, it redirects me AGAIN to the login page:
1. I login to the app now. 2. I hit some* "server side" link button or button (or any other object that raises a server side event). 3. The app takes me to the login screen. (Just as if the session had timed out) 4. I login again to the app. 5. I immediatelly hit on the same "server side" object. 6. I get redirected to the login page again. * by saying some, I mean that it is a random part of the application. Today may be on link "A" and tomorrow on button "B"
The whole process can take me as little as few seconds. I can even try to use a different computer, different user (even different countries!!) and the problem will be the same.
But if we try later:
7. I login to the application in few hours. 8. I hit on the very same "server side" object. 9. It works perfectly!!!!! 10. I continue to work with the app and in some* other place, I get redirected to the login screen. * by saying some, I mean that it is a random part of the application. Today may be on link "A" and tomorrow on button "B"
I have modified the authentication cookie to be persistant or not, to have a longer time out period, I have modified the sessionState and the authentication tags in the web.config and I'm still having the issue.
Any ideas?? Any at all?? I'm willing to try almost everything at this point!!
Should you have any questions or comments, let me know.
Regards, Cesar Saucedo
.
- Follow-Ups:
- Re: Forms authentication BIG issue
- From: Cesar
- Re: Forms authentication BIG issue
- References:
- Forms authentication BIG issue
- From: Cesar
- Forms authentication BIG issue
- Prev by Date: gridView... no key Originalvalue
- Next by Date: Re: XP Pro/IIS 5.1/.NET 1.1 Performance Problem
- Previous by thread: Forms authentication BIG issue
- Next by thread: Re: Forms authentication BIG issue
- Index(es):