I have 2 apps running under the same server 2008 and IIS 7 , webapp 1 requires you to login in oder to see the contents of the site when looged in im creating a session so called AIO.
There is a link that points to a page in webapp2 ,this page is secured and needs session AIO to be present in order to access the contents . how can I share the session between these 2 apps , any hint or working example ?
I have 2 apps running under the same server 2008 and IIS 7 , webapp 1 requires you to login in oder to see the contents of the site when looged in im creating a session so called AIO.
If they're on the same domain or subdomain then you can issue the cookie suc that it's shared across the two. You need to configure the <forms domain> setting as sync the <machineKey> element in the two config files.
If they're on two different domains then yes, you'll have to look into some sort of SSO approach.
senior_oracl...
Member
30 Points
165 Posts
share session between applications
Nov 06, 2012 12:33 PM|LINK
I have 2 apps running under the same server 2008 and IIS 7 , webapp 1 requires you to login in oder to see the contents of the site when looged in im creating a session so called AIO.
There is a link that points to a page in webapp2 ,this page is secured and needs session AIO to be present in order to access the contents . how can I share the session between these 2 apps , any hint or working example ?
budugu
All-Star
41188 Points
6034 Posts
Re: share session between applications
Nov 06, 2012 12:52 PM|LINK
Did you look into the Single sign on..?
http://aspalliance.com/1545_Understanding_Single_SignOn_in_ASPNET_20.all
"Don't be afraid to be wrong; otherwise you'll never be right."
BrockAllen
All-Star
28052 Points
4996 Posts
MVP
Re: share session between applications
Nov 06, 2012 01:01 PM|LINK
I'm assuming forms auth here:
If they're on the same domain or subdomain then you can issue the cookie suc that it's shared across the two. You need to configure the <forms domain> setting as sync the <machineKey> element in the two config files.
If they're on two different domains then yes, you'll have to look into some sort of SSO approach.
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/