Forum Moderators: coopster

Message Too Old, No Replies

ensuring session consistency across multiple domains?

         

jamie

3:53 pm on Sep 28, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hi,

i am trying to implement a way of tracking users across all our domains (.com, .de, .es, etc).

all domains are on the same server, so as long as the visitor receives the same session id under each domain, all session data is consistent.

upon entry to any of the sites, each visitor is tested for cookie acceptance, then redirected to the master domain (where the ecom shop is) where he is assigned a session id, then redirected back to the originating domain were the session id is used for the new session on that domain.

this involves 3 header() redirects for each visitor on his first entry to the site. i have tested myself and the redirects appear to be pretty instantaneous.

is there anything against doing 3 redirects in this way?

any reassurance or suggestions are much appreciated!

eelixduppy

3:06 am on Sep 29, 2007 (gmt 0)



Sounds pretty good; I don't see anything wrong with it. Just make sure you aren't getting any errors in both php and apache.

jamie

3:12 pm on Sep 29, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



thanks for comments elixduppy, i had a lot of errors with the redirects while working it out, but it seems to be ok now.

james