473,231 Members | 1,786 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,231 software developers and data experts.

share session between more than one web application

Dear All,
I have three web applications that I want to provide one single web
interface to all of them.
If I am able to share the session between them, It will be great. so is this
possibel?
Nov 19 '05 #1
2 2987
You can and can't do what you desire. You can initiate a single sign on
mechanism by using the same encryption keys and cookie name for your
applications. This works well when the apps are on the same machine or web
farm.

Session variables, however, cannot be shared. There are a couple of ways
around this:

1. Set up a service that holds the session key along with pertinent session
information. Call that service when an application does not have the
information and keep the information in session in each app.

2. Place data in a database when the first app is hit. If a second app is
missing session info, grab it. This is essentially the same as version 1, but
the database is the key link.

NOTE: Try to persist as little data as possible.

Another option, if everything is under the same domain name, is to set up
cookies that can be read across apps.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"Ahmed" wrote:
Dear All,
I have three web applications that I want to provide one single web
interface to all of them.
If I am able to share the session between them, It will be great. so is this
possibel?

Nov 19 '05 #2
Cowboy (Gregory A. Beamer) - MVP wrote:
"Ahmed" wrote:
Dear All,
I have three web applications that I want to provide one single web
interface to all of them.
If I am able to share the session between them, It will be great. so is this
possibel?

You can and can't do what you desire. You can initiate a single sign on
mechanism by using the same encryption keys and cookie name for your
applications. This works well when the apps are on the same machine or web
farm.

Session variables, however, cannot be shared. There are a couple of ways
around this:

1. Set up a service that holds the session key along with pertinent session
information. Call that service when an application does not have the
information and keep the information in session in each app.

2. Place data in a database when the first app is hit. If a second app is
missing session info, grab it. This is essentially the same as version 1, but
the database is the key link.

NOTE: Try to persist as little data as possible.

Another option, if everything is under the same domain name, is to set up
cookies that can be read across apps.


I'm currently working on something that might be considered to be 6
seperate web applications. It's composed of about 10 different projects
now. Some of these are plain class libraries, which encapsulate
functionality that is used by more than one of the web projects.

One is a basic web project that just references the other web projects.
It lives in a virtual directory of IIS, and is the only one marked as
an application. The others live in subdirectories (and I have to go
into IIS manager every time I add a new one and turn *off* the
application for these, and delete web.config from these directories).

Login is done within the basic root project. It then redirects to
either a) The project which the user is authorised to use, or b) a
selection page, if they are authorised for multiple projects.

Session is shared, single sign on works, and where webprojects don't
need to know about each other, they're not referenced by each other.
Disadvantages: There is only one application. If you need to recycle
one of the projects, you have to recycle all of them. I suppose I could
use additional web.configs within the subdirectories if I needed to
vary some of the behaviour, but so far one web.config has met all of my
needs.

Damien

Nov 19 '05 #3

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

Similar topics

3
by: AARON PECORARO | last post by:
I need to split apart my web application into multiple projects to allow it to be distributed in parts, but all of the projects need to work together (ie. they need to share session information)....
7
by: George Hester | last post by:
In one Application (2) the client is redirected to a Logon ASP in a different Application (1). A Session Variable is made in Application 2 which needs to be recognized in Application 1. Can I do...
2
by: TaeHo Yoo | last post by:
Hi all, I have a solution which contains multiple projects. Those multiple projects should share the same session. For example, users login, create the session for users then these session...
4
by: Jerry | last post by:
I am sorry for posting this message again. But I really want to hear more responses. --- My company is designing a new ASP.Net web application. Becasuse of the concern of abusing Session...
4
by: | last post by:
Hi, Im running IIS and all my data is stored on a network share e.g \\10.0.0.111\domain.com\main The problem i'm facing is that i dont know how to point my aspx.vb files to any dlls in the bin...
5
by: Joe | last post by:
I have an application which runs in a non-secure environment. I also have an application that runs in a secure environment (both on the same machine). Is there any way to share the session data for...
1
by: Rommellion | last post by:
We have 5 to 6 projects .net running on production, in which each one has its own virtual direstory, however we need to add up two more and link them all together so they can share same single...
5
by: =?Utf-8?B?U2FjaGluIFNha2k=?= | last post by:
I have asp application, from which I am redirecting user to .aspx page. I want to use same sessions in .aspx application. When User clicks on Browsers back button i.e. comes back from .aspx page to...
2
by: =?Utf-8?B?UGhpbCBKb2huc29u?= | last post by:
I work on an asp.net 1.1 application which we cannot upgrade to a newer version of .net so we want to look into sharing session, preferably with 3.5, but if that isn't possible with 2.0 or 3.0 ...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.