Jump to content

2 domains, 1 session


deansatch

Recommended Posts

I have a site where 2 domains are mapped to the same hosting account. e.g. domain.co.uk & dom-ain.co.uk.

 

When a user lands on the site ad domain.co.uk and clicks "add to cart" they then start a session. But if they are redirected to dom-ain.co.uk, the session is lost.

 

Is there a way to keep it on both? Or is there a way (search engine friendly) to make only one of these domains usable. I could do a 301 redirect on one of the domains so that the site is only viewable with one domain, but will I be penalised by google for redirecting the domain?

Link to comment
https://forums.phpfreaks.com/topic/144762-2-domains-1-session/
Share on other sites

Dont agree with the google seo thing sorry.

 

far as i am aware number off times a page is used on a search engine, does not get you higher page rank.

 

i think it best you use session's on a database it safer and it better. 

 

 

you can also use cookies with sessions that way no need for the database sessions as well.

 

but cross platform web sites,i suggest a database for the sessions.

Link to comment
https://forums.phpfreaks.com/topic/144762-2-domains-1-session/#findComment-759659
Share on other sites

Dont agree with the google seo thing sorry.

 

far as i am aware number off times a page is used on a search engine, does not get you higher page rank.

 

i think it best you use session's on a database it safer and it better. 

 

 

you can also use cookies with sessions that way no need for the database sessions as well.

 

but cross platform web sites,i suggest a database for the sessions.

 

you could very well be right...i am no SEO expert...it just seemed to make sense in my head...don't you get "google points" for instance if a sites refer to you? so if sites a & b refer to one domain and sites c & d refer to your other domain, wouldn't it be better to have all 4 sites refer to the same domain?

Link to comment
https://forums.phpfreaks.com/topic/144762-2-domains-1-session/#findComment-759666
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.