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

Common Login page across multiple web applications on the same domain

Hi All,
Is there any way to use a common login page across multiple web
applications?

I have tried couple of things that were suggested on MSDN but they did
not work.

http://msdn.microsoft.com/library/de...plications.asp

This technique falters when the second web application is looking for a
session variable and does not find it. The cookie part works fine.

Just wanted to know if anybody had done this.

Thanks in advance.

Neelima

Nov 19 '05 #1
1 2517
Hi All,
I thought I would share my solution to this issue.
At the suggestion of a friend I did the following:
Changed by web.config settings to the same as the once specified in the
link in my previous post.
Also, I changed the login functionality to store the userid in the
cookie.
I created a Base page, in the page load of the base page, I check for
session variables and if they are not there, I retrieve the cookie and
the userkey from it. I use the userkey to load the session variable
values from the DB.
I inherited the base page in all of my main pages and you need to the
following line in the page_load function of each page

base.Page_Load(sender,e);

Hope it helps somebody.

Thanks
Neelima
ng*****@gmail.com wrote:
Hi All,
Is there any way to use a common login page across multiple web
applications?

I have tried couple of things that were suggested on MSDN but they did not work.

http://msdn.microsoft.com/library/de...plications.asp
This technique falters when the second web application is looking for a session variable and does not find it. The cookie part works fine.

Just wanted to know if anybody had done this.

Thanks in advance.

Neelima


Nov 19 '05 #2

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

Similar topics

11
by: Ghazan Haider | last post by:
I am posting this for the lack of a better newsgroup, and for the knowledge of people here, and because its only partially OT. We have a bunch of users with their computers at work. There are...
3
by: Dan Nash | last post by:
Hi Any ideas on this... having moved the web app to another server, and setup all the WebApp data (disable anonymous access etc), locally my site still asks me for a Username/Password, even...
7
by: Doug | last post by:
An ASP.NET session cookie set on "www.mydomain.com" can not be accessed on "search.mydomain.com"; hence, a new session and cookie are being created on every sub-domain. This is occuring because...
7
by: Alan Silver | last post by:
Hello, Sorry this is a bit wordy, but it's a pretty simple question... I have a web site, http://domain/ which is a public site, part of which (http://domain/a/) is protected by forms...
8
by: PW | last post by:
I've added a punlic domain security login page to one of my web applications. I did this because the number of users has increased to a couple of dozen, and having them all added as users on my...
3
by: dev648237923 | last post by:
We have an asp.net web application that uses Forms Authentication. We need to launch a second application from links in this app. We don't want the user to have to also login to this second app. Is...
6
by: Joseph Geretz | last post by:
I have the following class which I am serializing and passing back and forth between my Web Service application and the client. public class Token : SoapHeader { public string SID; public...
1
by: tanya.wang | last post by:
Hi all, We have a site called http://www.mydomainxyz.com/ and our network guy has set up load balancing with multiple IIS servers. We also have a function that allows users to upload photos on...
9
by: Josh | last post by:
I run a Joomla website and am familiar with php in some but not all aspects. Currently I am trying to find some solutions related to session handling. Am I correct in saying that "login" is kept...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.