Results 1 to 4 of 4

Thread: Question on PHP cross domain session

  1. #1
    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.

  2. #2
    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.

  3. #3
    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.

  4. #4
    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.

Similar Threads

  1. Cross Domain privialges for Domain Admins
    By jean in forum Active Directory
    Replies: 5
    Last Post: 18-05-2011, 04:54 AM
  2. Replies: 4
    Last Post: 24-12-2010, 07:58 AM
  3. question about domain trusts and firewall ports
    By BlackSunReyes in forum Active Directory
    Replies: 3
    Last Post: 17-08-2010, 05:37 PM
  4. Replies: 1
    Last Post: 25-07-2007, 12:34 PM
  5. Replies: 4
    Last Post: 26-02-2007, 09:33 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,578,333.37863 seconds with 16 queries