473,395 Members | 1,495 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.

Web apps x 2 - Sharing session

Hey all,

Is it possible that I can somehow transfer an authenticated user
(stored in session) between 2 web applications with some measure of
security? Essentially if a user has logged into application A, I want
to somewhat integrate pages from application B, but the user will need
to be authenticated to application B. In application B, the user will
need to be stored in session also.

Configuring web servers and so on is not much of an option here. I need
an in code solution.
Perhaps application B can have some sort of ASPX that deals with
requests for authenticating a user. Application A could pass username
and password to App B via this page as a POST and then app B will store
user in session. Then app A can call pages from app B wherever they
like. The only thing I would need to manage is if the session on App B
has expired, and if so, to re-authenticate as necessary. This was only
my first "guess" at a possible solution and am open to any suggestions.
Cheers,
Steven

Jul 28 '06 #1
2 1378
Hello Steven,

Yes, but they must share session keys and authentication keys. There are
a number of articles that talk about how setup a machine key for each virtual
directory to enable sharing of the session tokens. Google it.
Thanks,
Shawn Wildermuth
Speaker, Author and C# MVP
http://adoguy.com
Hey all,

Is it possible that I can somehow transfer an authenticated user
(stored in session) between 2 web applications with some measure of
security? Essentially if a user has logged into application A, I want
to somewhat integrate pages from application B, but the user will need
to be authenticated to application B. In application B, the user will
need to be stored in session also.

Configuring web servers and so on is not much of an option here. I
need
an in code solution.
Perhaps application B can have some sort of ASPX that deals with
requests for authenticating a user. Application A could pass username
and password to App B via this page as a POST and then app B will
store
user in session. Then app A can call pages from app B wherever they
like. The only thing I would need to manage is if the session on App B
has expired, and if so, to re-authenticate as necessary. This was only
my first "guess" at a possible solution and am open to any
suggestions.
Cheers,
Steven

Jul 28 '06 #2

Hi Shawn,

So when you say "setup a machine key for each virtual directory".. that
sounds like an IIS thing to me.

As per my original statement:
>Configuring web servers and so on is not much of an option here. I need
an in code solution.

If what you are talking about is not IIS related then please explain
further what you mean. I did a google for "machine key" and "setup a
machine key for each virtual directory" and also "machine key virtual
directory" and all results related to IIS configuration. Perhaps I am
missing something here?

Many thanks,
Steven

Jul 28 '06 #3

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

Similar topics

2
by: Terence | last post by:
Does anyone have any experiences to share regarding this? we run a ColdFusion/PHP/Java(cocoon) environment and I'll probably figure out a way for all apps to be able to share sessions. I wanted...
1
by: Bill Belliveau | last post by:
Hello all, I’m looking for some general information about sharing the session but haven’t found any resources that confirm my conceptions. All the discusisons about sharing the session...
4
by: Daniel | last post by:
Hi I am having a problem sharing session between SSL and non-SSL asp.net pages I have F5 BigIP with sticky sessions working fine, but the problem is tha sticky session applies at the port level...
3
by: Mark | last post by:
Ok, I know that .net inherently does not share session data across asp.net projects, but is there any decent work around to this. We already have a big chunk of our application using the asp.net...
4
by: Jeff | last post by:
We have multiple ASP.Net web apps in development. As a standard we are looking to go with SQL Server to hold state information. Can we have the multiple apps all point to a single State DB? Or...
5
by: Nils Hedström | last post by:
Sorry about my last post. There seems to be a bug in my newsreader-software. My company (companyA) has bought companyB. The website of companyA is www.companyA.com and comanyB's website is...
4
by: qube3 | last post by:
We have applications written by JSP/Servlet and ASP.NET. All our future development would be based on ASP.NET. We wants to develop a single user interface so that users would not be aware that...
7
by: Nils Hedström | last post by:
I have a web farm that uses a state server for session management. A user logs on to a website (www1.mysite.com). When the same user visits www2.mysite.com I want the user to be logged in. Right...
8
by: antonyliu2002 | last post by:
We are extending a web application written in classic ASP long time ago. We will add more components to this web application in ASP.NET 2.0. To use the web application, our web users will have...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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.