A
anonymous
Hi all,
I've been searching the way to achieve the following task.
But no luck so far.
I have a web site(main site), which requires authentication. This
authentication is set at Windows directory level, so user will see the
pop up gray box in order to log in rather than custom web page. The
username and password are stored at active directory level, thus this is
the windows integrated security.
Now, I have created another web site under same security setting. So
once user logged into the main web site and click on the link to this
second web site, they can view the site without additional login.
Here is what I need. I need to read in currently logged in user from
the second web site, since this is something I will be storing in my
database as well as use it to determine certain business logics.
One obvious work around is to creat custom login page to Active
Directory, and store the logged in userid in session variable as I
authenticate. Unfortunately, this is not what I want to do. Because I
have no control over the main web site. So if I take this approach,
user must login twice in order to user my site. First login to main
site, then when they click on the link to my site, type in the same
login userid and password to view my site.
I'm hoping to see some simple solution such as Session["CurrentUserID"]
variable.. (if there is one..)
Please help!
Thanks
Takashi
I've been searching the way to achieve the following task.
But no luck so far.
I have a web site(main site), which requires authentication. This
authentication is set at Windows directory level, so user will see the
pop up gray box in order to log in rather than custom web page. The
username and password are stored at active directory level, thus this is
the windows integrated security.
Now, I have created another web site under same security setting. So
once user logged into the main web site and click on the link to this
second web site, they can view the site without additional login.
Here is what I need. I need to read in currently logged in user from
the second web site, since this is something I will be storing in my
database as well as use it to determine certain business logics.
One obvious work around is to creat custom login page to Active
Directory, and store the logged in userid in session variable as I
authenticate. Unfortunately, this is not what I want to do. Because I
have no control over the main web site. So if I take this approach,
user must login twice in order to user my site. First login to main
site, then when they click on the link to my site, type in the same
login userid and password to view my site.
I'm hoping to see some simple solution such as Session["CurrentUserID"]
variable.. (if there is one..)
Please help!
Thanks
Takashi