By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,133 Members | 1,113 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,133 IT Pros & Developers. It's quick & easy.

Multiple Websites and Single Sign in

P: n/a
Jai
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.
and
also if the member sign in for the site1.com and if opens sign2.com or
site3.com than there he/she must be shown as "Already Login"

Anybody Please tell me how can i make a Login System(with 1000%
security) which is available to mulitple websites.

If possible give some reference also......

Thanks in advance.........

Sep 23 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"Jai" <ja***********@gmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
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.
and
also if the member sign in for the site1.com and if opens sign2.com or
site3.com than there he/she must be shown as "Already Login"

Anybody Please tell me how can i make a Login System(with 1000%
security) which is available to mulitple websites.
All you need is a back-end database that all three sites can access. Create
a single user table holding login details e.g. userid, (encrypted) password
etc Also include a field containing a boolean value to indicate whether the
user is logged on or not. Finally, make sure all three sites use SSL.

The only problem (and it's not much of a problem) I have is that if users
don't log out "cleanly" i.e. by clicking the Log Out button, then the
boolean flag in the database doesn't get updated until their session times
out 20 minutes later...
Sep 23 '06 #2

P: n/a
Consider CardSpace, a single sign-on solution which will be out in
January.

http://cardspace.netfx3.com/

If these sites are all ASP.NET you can also configure them with the
ASP.NET Memberhsip and Role providers and point them to a common
database. If you cannot have them all access the common database, you
can at least synchronize these databases to a central database
regularly.

I created some controls you can use here.

http://brennan.offwhite.net/blog/200...es-management/

Brennan Stehling
http://brennan.offwhite.net/blog/

Mark Rae wrote:
"Jai" <ja***********@gmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
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.
and
also if the member sign in for the site1.com and if opens sign2.com or
site3.com than there he/she must be shown as "Already Login"

Anybody Please tell me how can i make a Login System(with 1000%
security) which is available to mulitple websites.

All you need is a back-end database that all three sites can access. Create
a single user table holding login details e.g. userid, (encrypted) password
etc Also include a field containing a boolean value to indicate whether the
user is logged on or not. Finally, make sure all three sites use SSL.

The only problem (and it's not much of a problem) I have is that if users
don't log out "cleanly" i.e. by clicking the Log Out button, then the
boolean flag in the database doesn't get updated until their session times
out 20 minutes later...
Sep 23 '06 #3

P: n/a
mg
If the sites are under the same domain then write a cookie that contains a
unique key identifying the user, and read the cookie on all the page loads to
see if the user should be logged in. This works because cookies span multiple
..net apps within the same session.
--
mg
we''ll burn that bridge when we get to it
"Brennan Stehling" wrote:
Consider CardSpace, a single sign-on solution which will be out in
January.

http://cardspace.netfx3.com/

If these sites are all ASP.NET you can also configure them with the
ASP.NET Memberhsip and Role providers and point them to a common
database. If you cannot have them all access the common database, you
can at least synchronize these databases to a central database
regularly.

I created some controls you can use here.

http://brennan.offwhite.net/blog/200...es-management/

Brennan Stehling
http://brennan.offwhite.net/blog/

Mark Rae wrote:
"Jai" <ja***********@gmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
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.
and
also if the member sign in for the site1.com and if opens sign2.com or
site3.com than there he/she must be shown as "Already Login"
>
Anybody Please tell me how can i make a Login System(with 1000%
security) which is available to mulitple websites.
All you need is a back-end database that all three sites can access. Create
a single user table holding login details e.g. userid, (encrypted) password
etc Also include a field containing a boolean value to indicate whether the
user is logged on or not. Finally, make sure all three sites use SSL.

The only problem (and it's not much of a problem) I have is that if users
don't log out "cleanly" i.e. by clicking the Log Out button, then the
boolean flag in the database doesn't get updated until their session times
out 20 minutes later...

Sep 25 '06 #4

P: n/a
I created a more thorough example.

http://brennan.offwhite.net/blog/200...ith-aspnet-20/

Brennan Stehling
http://brennan.offwhite.net/blog/

Jai wrote:
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.
and
also if the member sign in for the site1.com and if opens sign2.com or
site3.com than there he/she must be shown as "Already Login"

Anybody Please tell me how can i make a Login System(with 1000%
security) which is available to mulitple websites.

If possible give some reference also......

Thanks in advance.........
Sep 26 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.