Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 1st, 2008, 03:30 AM
Registered User
Join Date: Sep 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to maintain session between Domain &subdomain


I am in a problem. I have a site Customermath.com. I have created a new subdomain on comlaint.customermath.com Here any one can come and post there complaint. I am also providing other service on customermath.com which need person to login. I want to maintain session between subdomain like if some one log in through customermath.com then he should not be asked to log in on complaint.customermath.com and vis-versa. Please help me if any one can.

Imran khan
Old September 5th, 2008, 12:44 PM
Registered User
Join Date: Sep 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts


That should help you. You have to modify the php.ini just a bit, or insert a line on all session pages that cross-domain session is needed.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Maintain the session in asp.net samgaya1983 ASP.NET 2.0 Professional 2 June 29th, 2007 03:37 AM
Domain Name & Web Hosting sohrabus ASP.NET 1.0 and 1.1 Professional 1 July 31st, 2006 08:36 AM
Job fails & need to use domain\user acct to run kiwikencox SQL Server 2000 1 October 17th, 2005 09:30 PM
HOW-TO Maintain a Class Object in Session laksa ASP.NET 1.x and 2.0 Application Design 1 April 28th, 2005 09:21 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.