Saturday, March 24, 2012

Working with Global.asax

I have a problem related to the page authentication. . . i am trying to
implement the Windows authentication in the project,
I am using the LDAP services to fetch the details from the widows directory.
.. .

I mainly use the User.Identity.Name to fetch the user name and keep the
details in the session and passthrough where ever required

First Problem:
Even though the sessions are not expired the user is displayed with the
windows authentication form

Second Problem:
How to get the details of user along with the Groups Assigned to him

Third Problem:
When the sessions are expired, i need to know the situation that sessions
are expired

My main idea is first authentication from the Windows and then with the
database of mine and give him the permission> First Problem:
> Even though the sessions are not expired the user is displayed with
> the
> windows authentication form

Can you rephrase? I don't follow what your question is.

> Second Problem:
> How to get the details of user along with the Groups Assigned to him

Call the Win32 API LogonUser or use prorocol transition:

http://pluralsight.com/wiki/default...Transition.html

> Third Problem:
> When the sessions are expired, i need to know the situation that
> sessions
> are expired
> My main idea is first authentication from the Windows and then with
> the database of mine and give him the permission

I'd suggest not using sessions. Instead cache the data in the ASP,NET data
cache. If the cache times out then just reload the cache. It avoids all sorts
of session issues.

-Brock
DevelopMentor
http://staff.develop.com/ballen

0 comments:

Post a Comment