November Happy Hour will be moved to Thursday December 5th.

Logged out when switching sites

Vote:
 

Hi

Right now I have 2 sites setup but I can only login on one of them. When i try to login or edit on the second site I get redirected back to the login page (but I'm logged in on site 1). It seems like the login session/cookie is only valid for one of the site.

Does anyone know how to solve this?

#86238
May 16, 2014 11:51
Vote:
 

Is it on IIS, IIS Express or Casini?
Have you checked that there are different url in sitesettings?

#86240
May 16, 2014 12:13
Vote:
 

It's running on IIS, what I can see the siteHosts in EPiServerFramework.config / Site information are the same as thoose who are binded in IIS. Are their any more site settings that I'm missing?

#86252
May 16, 2014 13:25
Vote:
 

It should work.
What happens if you try to open them in two different incognito-windows (private-window) to be sure they not sharing Session in any way?

#86255
May 16, 2014 13:31
Vote:
 

If I try to login in incognito-mode (site 2) I still get redirected to the login page.

#86260
May 16, 2014 13:44
Vote:
 

The two sites are on two completely different domains are they? Guess you loose the session cookie between those domains?

#86261
May 16, 2014 13:49
Vote:
 

Also, are you shoing information on site2 from site1?

#86265
May 16, 2014 14:21
Vote:
 

First. is it always site 2 that is not working. I mean for example, if you "kill" site one, can you login to site 2?

#86267
May 16, 2014 14:34
Vote:
 

Thank you all for your help, it seems that their are other factors involved for not working. I'be been trying to access the site with IE 10 from a Citrix session. And when I tried another site that I know works it seems to give me the same error.

Then i managed to run the site from another server and I got it to work!

So thank you again for trying to help!

#86270
May 16, 2014 14:45
Vote:
 

Good to know. Citrix can be a evil thing.... :-)

#86271
May 16, 2014 14:49
Vote:
 

Hi,

I have a similar problem.

AlloyTech website: http://www.dcaric.com/ew-images/20140516/alloy.png

Real website: http://www.dcaric.com/ew-images/20140516/test.png

I'm running both websites in Cassini.

If I open both websites in Google Chrome (same window, two tabs), and I log in to "real" website, when I go to AlloyTech website, I'm logged in as a user from "real" website.

I don't have that problem if I view them in different browsers.

I checked the Session Storage in Google Chrome dev tools, but it doesn't contain user id / username of currently logged in user.

Is there a quick fix?

Thanks!

edit: Cookies -> localhost -> .EPiServerLogin is the same for both websites. It doesn't take a port number into account.

#86278
Edited, May 16, 2014 16:28
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.