473,763 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Single sign-on w/ASP?

I'm building a few web sites that will use distinct domain names but will
reside on the same server, at the same IP address, in the same application
space, and will share a database. They will each provide different content
depending on the domain name, but will share some core functionality behind
the scenes.

What I'd like to be able to do is have one site serve as the primary site.
If a visitor comes to one of the secondary sites and wishes to perform a
function that requires them to be logged in, I'd like them to be able to log
in only once and then be able to visit any of the sites without having to
login again.

Does anyone know of a pure ASP script-based single sign-on system, or have
any tips on how to go about building one?

Thanks,

Paul
Jul 19 '05 #1
4 2456
It seems that the only way you could do this is if you track your logins in
a database. You wouldn't be able to share session variables or cookies
across the domain.

Ray at work

"Paul Woods" <paul@flyingpyl on-dot-com> wrote in message
news:uU******** *****@tk2msftng p13.phx.gbl...
I'm building a few web sites that will use distinct domain names but will
reside on the same server, at the same IP address, in the same application
space, and will share a database. They will each provide different content depending on the domain name, but will share some core functionality behind the scenes.

What I'd like to be able to do is have one site serve as the primary site.
If a visitor comes to one of the secondary sites and wishes to perform a
function that requires them to be logged in, I'd like them to be able to log in only once and then be able to visit any of the sites without having to
login again.

Does anyone know of a pure ASP script-based single sign-on system, or have
any tips on how to go about building one?

Thanks,

Paul

Jul 19 '05 #2
Yes, I expect to do some tracking in the database. But then it gets tricky
because of the cross-domain issue.

Off the top of my head, I could see a process where a login request pops a
small window from the primary site. The primary site processes the login
request and then does a series of redirects to each of the secondary sites
to set a cookie that simply identifies the user and then closes the window.
Then when the user visits a secondary site, it reads the user id from the
cookie and then checks the database to see if the user was logged in.

This seems pretty kludgey though, and I'm wondering if there is a more
elegant way to do it.

"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:OQ******** *****@TK2MSFTNG P09.phx.gbl...
It seems that the only way you could do this is if you track your logins in a database. You wouldn't be able to share session variables or cookies
across the domain.

Ray at work

Jul 19 '05 #3
> This seems pretty kludgey though,

Yes, because as you add "related sites" this process will take longer and
longer. There is also no guarantee that the user will leave the popup
window long enough for all the sites to get registered, nor are you
guaranteed that they have scripting and/or cookies enabled, etc etc
Jul 19 '05 #4
It would certainly require cookies. I'm not sure I'd be too worried about
people that didn't have them turned on. They'd be making a choice about
cookies vs ease of use, which seems acceptable. They'll just have to login
multiple times.

Perhaps it would be something where the first time the user ever logs in,
all the cookies get set as I mentioned before (again, they just set a unique
key and nothing else). Then in the future when a visitor comes to a site, a
script checks for that cookie and if it's present, checks the db to see if
they've been logged in. If so, it just transparently sets a cookie saying
they're logged in to that particular site as the page is being displayed.
If the cookie is not present (which could be for several reasons) then
they're required to login anyway and we reset the cookies as in step 1. But
the point is that the unique id cookies are persistent so once they had been
set you shouldn't have to go through the cycle of setting them all again.

There are problems with this too, but I guess I'm thinking through the
problem, hoping others will have some ideas as well. It doesn't seem like
it should be impossible, though it may turn out to be impractical.

"Aaron Bertrand - MVP" <aa***@TRASHasp faq.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
This seems pretty kludgey though,


Yes, because as you add "related sites" this process will take longer and
longer. There is also no guarantee that the user will leave the popup
window long enough for all the sites to get registered, nor are you
guaranteed that they have scripting and/or cookies enabled, etc etc

Jul 19 '05 #5

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

Similar topics

1
5569
by: Zalek Bloom | last post by:
Hello, I built some Web site that includes 3 frames page. After a user sign-off I want to redirect him/her to a single frame page. When I use Response.Redirect command, I am getting the redirected page as a frame and I still see 2 other frames. How to get rid of other frames and display only a single frame? Thanks,
0
1519
by: Emil Georgiev | last post by:
Hell I have a Web Custom Control project in ASP.NET. I'm using a subclassing technique to add functionality in HyperLink web server control. I want to create a property "BrowserWindow" of my class "NewWinHyperLink" which will contain child properties. When I use this custom control in testing web application these child properties don't appear with 'plus sign' in visual studio designer. I want to make my parent property to have plus...
6
52670
by: Jason Heyes | last post by:
Does a function exist in the standard library to compute the sign of an integer? Example: int sign(int v) { return v > 0 ? 1 : (v < 0 ? -1 : 0); } Thanks.
7
3323
by: kingski | last post by:
Any idea about this ? http://www.developerfusion.co.uk/forums/thread/114379/#114379 "Can any one help me as i am building a shopping cart and it supports multiple currencies but while sending confirmation mail o customer it does not show euro sign before amount he paid but it is showing a queston mark over there. It is working fine with Dollar sign and Pound Sign but this Euro is creating problem. " thanks.
4
2721
by: Jai | last post by:
Hi, I have a problem related to Login System. I am developing 3 websites for some institution.Now they want that if anybody had sign up for there site1.com(say), than he or she should be able to sign in for site2.com and site3.com. hence, if user has sign up for the membership of site1.com than he/she should automicallly become the member of site2.com and site3.com.
6
1976
by: Steve K. | last post by:
I recall a few months ago coming across an article allowing for encoding (or converting?) xml and html documents into sign language as well as brail for deaf and blind people, and that they were pending an ISO designations. I cannot seem to find any information on this. From what I recall they were supposed to be use able in <metacharset or so tags. Thanks in advance for any help on this.
13
8673
by: Samir Chouaieb | last post by:
Hello, I am trying to find a solution to a login mechanism for different domains on different servers with PHP5. I have one main domain with the user data and several other domains that need a login to show data. I want the user to login only once when he visits any of my domains.
0
12304
amitpatel66
by: amitpatel66 | last post by:
All, Please find below POST about Oracle SINGLE ROW FUNCTIONS which might be useful. SINGLE ROW FUNCTION are those which are executed once for each and every row of the Query. The different types of SINGLE ROW FUNCTIONS are: 1. NUMBER Functions 2. DATE Functions
10
1796
by: George2 | last post by:
Hello everyone, I am surprised to see that the value of sign ' is the same as \'. So, there is no need to add sign \ before sign '? In my past knowledge of sign ', we always need to add sign \ before sign '. Any comments? Here is my simple program to test.
1
2730
by: 5095 | last post by:
Hi, i want to import data in multiple tables from a single text file (each field is seprated by pipe sign and each record is seprated by asterisk * ). Please guide me to the appropriate way. Regards
0
9566
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10149
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9943
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8825
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6643
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5271
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3918
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3529
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2797
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.