Membership Plugin from other domain

Re: [8bit Gamer] Membership Plugin from other domain

By Chris - October 20, 2010

Hi Paul,

PHP Sessions are tracked on the client with a cookie, and cookies are not shared between domains.

If all your sites are on subdomains, you may be able to find a simpler solution; otherwise, you're going to need to pass the session identifier around (and possibly convince your webserver to allow sessions to be shared between domains if there are security restrictions in place to prevent this.)

Try this [url http://www.google.com/search?q=session+multiple+domains]google search[/url] to find lots of people trying to do the same thing, as well as lots of possible solutions.

I hope this helps!
All the best,
Chris

Re: [chris] Membership Plugin from other domain

Hi Chris,

Thanks for the reply and link :)

I Will investigate !

Paul

Re: [8bit Gamer] Membership Plugin from other domain

By gadefgaertgqe - October 20, 2010 - edited: October 20, 2010

Just a thought. They are clicking on a link which is on the actuall domain they are logged into. That link then takes them to the other domain. Does that make a difference? Also would javascript maybe help to pass a variable between domains? It's late here so sorry if it doesn't make sense lol!

I am also looking at moving the analytics page to the domain that CMSB is installed on, and re-working the code to dynamicaly show the correct data.

Thanks

Paul

Re: [8bit Gamer] Membership Plugin from other domain

By Jason - October 25, 2010

Hi Paul,

Are you having them log in through the CMS or through the website membership plugin? The best solution is to have them login through a web form on the actual domain that they are going to be using. Since javascript is a client side language and the sessions are handled on the server side, I don't think that would help us.

Let me know if you have any other questions.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Membership Plugin from other domain

Hi Jason,

Yeah I agree. I have moved the analytics software to the same server as the login and all is working fine.

Thanks :)

Paul