Multiple Sites and Caching Issues

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
12/3/2012 10:23:13 AM
Gravatar
Total Posts 19

Multiple Sites and Caching Issues

Hi,

I can't recreate this issue every time, but have had multiple complaints of it happening and have had it happen to me in Dev (locally) and on my Live server.

I have a couple of sites using Mojoportal and admitedly they are "clones" of each other with different content and different skins. I say clone as I copied the exact same install and database and then edited it.

I/users sometimes get an issue whereby they can no longer log in one or other of the sites and I am guessing this has something to do with the cookies or local caching getting confused. If they clear their local cash they can normally log back in. The sites are competely different instances in IIS (no code sharing) and in live have different URLs.

Is there something I need to set in the site or the database to make them "unique" and stop this happening?

Many thanks

Matt

12/3/2012 1:29:50 PM
Gravatar
Total Posts 18439

Re: Multiple Sites and Caching Issues

Hi Matt,

How different are the urls? Do they share the same domain?

Are they multi site installations based on folder names?

The only thing I can think of is if they share the same domain and they are configured as multi site installations by folder then the siteguid is used in the authentication cookie and since you copied the database the siteguid would be the same possibly causing some kind of cookie conflict. But if they are not the same domain I see no way that they could impact each other.

You might try varying the name property on the <forms element in web.config so they are not the same accross those sites.

In any case without steps to produce the problem it is not something I can investigate. It is certanly not a problem I've ever seen or heard of before.

Hope that helps,

Joe

12/3/2012 1:47:04 PM
Gravatar
Total Posts 19

Re: Multiple Sites and Caching Issues

Hi Joe,

Thanks for taking the time to reply. The ones I use locally are using the same domain (localhost), but the one on the server, are using completly different domains, not even sub-domains. They are also not running multi-site, they are totally seperate application pools and databases.

I'll look into the site Guids and also the web.config suggestion. So far I have only ever had or heard of it happening with Chrome or Firefox, but that maybe more down to the mass exudus from IE ;-)

I'll also try and re-produce it, but that maybe tough as seem sporadic.

Thanks again.

Matt

12/3/2012 2:06:45 PM
Gravatar
Total Posts 19

Re: Multiple Sites and Caching Issues

Hi Joe,

I think you may have lead me onto something... Due to the fact that I cloned the database and code... the different sites all have the same site GUID... in different databases.

Would this cause a mix up with the cookies etc and if so, whats the best way to fix it. I am assuming changing the guid breaks many other db relationships...

Cheers

Matt

 

12/3/2012 2:11:04 PM
Gravatar
Total Posts 18439

Re: Multiple Sites and Caching Issues

Cookies are not shared across domains and the site guid is only used in a cookie when configured for folder based multi sites. So site guid should not matter as far as I know.

12/3/2012 2:16:59 PM
Gravatar
Total Posts 19

Re: Multiple Sites and Caching Issues

Whilst not solving the issue, I guess thats good news or I might be in trouble.

You must sign in to post in the forums. This thread is closed to new posts.