one account for multiple sites

Reply

Join Date: Oct 2009
Posts: 55
Reputation: shishtawitch is an unknown quantity at this point 
Solved Threads: 2
shishtawitch shishtawitch is offline Offline
Junior Poster in Training

one account for multiple sites

 
0
  #1
Nov 22nd, 2009
how can i use a single account on my double sites.........either with cookies or any thing else...........!!

suppose i have http://www.mydomain.com and also
http://another.mydomain.com how can it use my single account with these both sites..........!!
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,860
Reputation: cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about 
Solved Threads: 161
Sponsor
cwarn23's Avatar
cwarn23 cwarn23 is offline Offline
Macgyver the second
 
0
  #2
Nov 22nd, 2009
Cookies and sessions won't work because they are separate domains so I would suggest having them both read a common mysql database where user data will be stored so when a user logs into each, their preferences+passwords will still be the same as the other site. If however you do not want the user to have to log in twice then when a user logs in record their ip address in the user database and when the user visits the second site, the second site will check if the users ip is in the database and if it is it will send a cookie.

Sorry if that is too brief but there is so much to explain in so fewer words...
Try not to bump 10 year old topics as it can be really annoying.
http://syntax.cwarn23.net/
Smilies: ^_* +_+ v_v -_- *~*` Want 1 on 1 php help, add me to msn at msn@cwarn23.info
My favourite PC. -- Jumba webhosting
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 55
Reputation: shishtawitch is an unknown quantity at this point 
Solved Threads: 2
shishtawitch shishtawitch is offline Offline
Junior Poster in Training
 
0
  #3
Nov 22nd, 2009
but how google handles a single account for multiple sites.......!!

if i store cookies................do you think this should work........!!
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 1,352
Reputation: ardav will become famous soon enough ardav will become famous soon enough 
Solved Threads: 172
ardav's Avatar
ardav ardav is offline Offline
Nearly a Posting Virtuoso
 
-2
  #4
Nov 22nd, 2009
Why did you start another thread when you posted a similar one and didn't bother replying to it?
Twpsyn cythraul. Cawr y dom tarw. Gwybod dim, gofyn dim.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,860
Reputation: cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about 
Solved Threads: 161
Sponsor
cwarn23's Avatar
cwarn23 cwarn23 is offline Offline
Macgyver the second
 
0
  #5
Nov 22nd, 2009
but how google handles a single account for multiple sites.......!!
Well cookies are designed to serve one domain only and google's login uses Java applets. So perhaps with googles login their Java applet could write to a file on the local system or something like that but this obviously doesn't suit your situation as you want php (The server side and not client side). Could you post your login script and show in a code box your database structure (column names and tables) as I shall help you code this multi site login.
Try not to bump 10 year old topics as it can be really annoying.
http://syntax.cwarn23.net/
Smilies: ^_* +_+ v_v -_- *~*` Want 1 on 1 php help, add me to msn at msn@cwarn23.info
My favourite PC. -- Jumba webhosting
Reply With Quote Quick reply to this message  
Reply

Message:




Views: 346 | Replies: 4
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC