0

hi, every one....!!
i have two sites i.e
mydomain.com
secondsite.mydomain.com

i want to make single login or signup account for both....!! how can it is possible.......!!

My problem is that if i pass single session to one site it working but when i open my other site it doesn't works..........!! Please help

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by diafol
0

Are the sites identical. If so, just point one of them to the other via A RECORD. Otherwise, you've got more work to do! Sessions to my knowledge, can't exist across domains. The only thing I can think of is if your sessions are stored in a DB. However, you need a way of accessing both DBs from the one website - I think you need to fiddle with "sockets" (I may be wrong).

Your domains suggest that one of your sites is a subdomain of the main domain. If so, you may be able to have a shared DB, which would solve the problem.

DB handling of sessions is less straightforward than simple use of $_SESSION variables, but tend to be more secure. There should be a number of free scripts out there to get you started.

I'm sure some pros/ more seasoned programmers could give you better advice than this though.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.