Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 08-08-2009
Member
 
Join Date: Apr 2008
Posts: 242
Question on PHP cross domain session

Hi,

I have a question to ask relating PHP cross domain session.

I want a mechanism that will help my 2 sites say site 1 & site 2, The users to log in only at a single domain & not on both domains separately. I need help on this problem so that I can maintain session for each user no matter where he is logged in?

I hope I am clear with what I want. If you have any question you can ask me.

The sites are different & not under a common domain. (Do I need to run them under a common domain?)

Thanks in advance.
Reply With Quote
  #2  
Old 08-08-2009
Member
 
Join Date: Apr 2008
Posts: 44
Re: Question on PHP cross domain session

You would need other mechanism to transfer session data. Could be through server to server connections or via client in formdata. if you wish to pass form variables, you could create a form that when submit is pressed, will pass the values to the new site. You could also pass values via link if they have to click it. You can also give a try to Dynamic Scripting for this purpose.
Reply With Quote
  #3  
Old 08-08-2009
Member
 
Join Date: Oct 2008
Posts: 115
Re: Question on PHP cross domain session

You can do this with 2 ways.
One is using cookies and the another one is using back ground process of php curl to create an instance on another page.

You can also have a look at this article discussing same problem
http://www.phpbuilder.com/columns/ch...s20001128.php3

I hope this helps you.
Reply With Quote
  #4  
Old 08-08-2009
Member
 
Join Date: Oct 2008
Posts: 65
Re: Question on PHP cross domain session

One of my friend wanted to do the same thing & what he did was just a bit change in his code at PHP.ini file.

This is what he did.

Code:
session.cookie_domain =
To

Code:
session.cookie_domain = site 2
(Site 2 is the second domain)

But for this you can maintain the same session only if a. sites are under same domain name.
b. site 1 & site 2 are on the same server

I hope this helps you.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Question on PHP cross domain session"
Thread Thread Starter Forum Replies Last Post
Cross Domain privialges for Domain Admins jean Active Directory 5 18-05-2011 04:54 AM
Windows 7 console session becomes unresponsive after Remote desktop session Krishanu Networking & Security 4 24-12-2010 07:58 AM
question about domain trusts and firewall ports BlackSunReyes Active Directory 3 17-08-2010 05:37 PM
The session setup to the Windows NT or Windows 2000 Domain Controller nobody Windows Server Help 1 25-07-2007 12:34 PM
Cross Forest Trust - The domain controllers required to find the selected objects in the following domains are not available error Miltongomes Active Directory 4 26-02-2007 09:33 PM


All times are GMT +5.5. The time now is 07:22 AM.