473,395 Members | 1,623 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to get logged in user from another app?



I have an Intranet asp.net application that opens multiple frames in its
main page. Authentication to the Intranet app is forms based. The app is
third party closed source. One of the frames can display other apps which I
develop. What I want to do is I don't want any user access my apps from
outside the Intranet and I want to be able from inside my app to find out
who is the current user.

I can get the Intranet use sql server as a state server and it can save the
current user in a database. However in *my* application, how can I
determine the current Intranet user for the client that sent a request to
access my app? It seems the solution is simple and out there but I can't
get my hands on it.

Is there a way to have my apps and the Intranet app share the same session
without me having the source code for the Intranet app?

TIA.

--

John Dalberg
Nov 19 '05 #1
1 1393
Hi John,

For Intranet, If you use windows authentication and deny
anonymous access:
<authentication mode="Windows"/>
<authorization>
<deny users="?" /> <!-- deny anonymous -->
<allow users="*" /> <!-- Allow all users -->
</authorization>

You can use

Page.User.Identity.Name
Page.User.IsInRole

to find out authentication user and determine user's role
without user logging in process.

HTH

Elton Wang
el********@hotmail.com

-----Original Message-----
I have an Intranet asp.net application that opens multiple frames in itsmain page. Authentication to the Intranet app is forms based. The app isthird party closed source. One of the frames can display other apps which Idevelop. What I want to do is I don't want any user access my apps fromoutside the Intranet and I want to be able from inside my app to find outwho is the current user.

I can get the Intranet use sql server as a state server and it can save thecurrent user in a database. However in *my* application, how can Idetermine the current Intranet user for the client that sent a request toaccess my app? It seems the solution is simple and out there but I can'tget my hands on it.

Is there a way to have my apps and the Intranet app share the same sessionwithout me having the source code for the Intranet app?

TIA.

--

John Dalberg
.

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Joshua Beall | last post by:
Hi All, What is the best way to use a cookie to remember a logged in user? Would you store the username and password in two separate cookies? Should the password be plain text? Hashed? Not...
12
by: Dave Smithz | last post by:
Hi there, Users of my PHP DB application have complained that it seems to log them out every now and then. I actually assume this is when it has been idle for sometime as I use session variables...
8
by: Mike Thomas | last post by:
I have two clients now who want to have an Access 2000 & 2002 application running on NT Server 2000 do some file updating at night when nobody is in the office. I have used Windows scheduler to...
1
by: anonymous | last post by:
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...
0
by: Luiz Vianna | last post by:
Hi folks, I´m working on this for a couple of days... I configured membership for my application. I can create user, login, logout, the user screen is save and comes back when him logs back....
4
by: Rik Hemsley | last post by:
Hi, Our web application impersonates a domain user when it runs. Usually, the printers visible to the application are the same as those visible to the domain user. At one installation, the...
2
by: _thedebugger | last post by:
Dear friends, I am developing one shopping cart application. My requirement is if user logged in one machine, he should not logged into from another db. how should I do that. I am using sql...
3
by: Lattis | last post by:
I have the following problem: User A is logged in to a windows 2000 terminal. He runs an application which runs under the credentials of a different user. If I try to see the current user...
1
by: Chris | last post by:
Hi, i created a default page with loginview and loginstatus like this: <asp:LoginView ID="LoginView1" runat="server"> <LoggedInTemplate>You are logged</LoggedInTemplate>...
2
by: Keith G Hicks | last post by:
asp.net 2.0 I have set my web.config as follows: <forms timeout="30"/(I know that's the default but I may chang it so the line's in there) I also have a few cookies I'm setting on my login...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.