I am creating an e-commerce platform and will allow hosting of e-commerce pages using CNAME records for store domain and an ssl certificate page on another domain for the sector checkout page. Both the domains below will reside on my server pointing to same code base.
Here is an example:
http://store.mystore.com
https://checkout.phpppointofsale.com/checkout?domain=store.mystore.com
Is the only real way to not using session data for checkout process and pull from a database instead? Or use database driven sessions and look up the data that way?
Related
My customer has a domain, www.sample.com. I have completed a simple webapp for them, and is planning to host it at webapp.sample.com. Both sites are hosted at different servers (sample.com is hosted at their own hosting), while webapp.sample.com is hosted at my own AWS server. I am having trouble with the PHP Session ID, as the browser looks at both domain and subdomain, assuming it the same server. Since it is different servers (and I don't have access to their web server), I am unable to login to my webapp, unless I clear the existing Session ID from the main domain. Is there a way to have 2 separate PHP Session IDs for the main domain and sub domain.
By clearing the Cookies/Session ID from the main domain, it will allow me to login to my webapp. However, if I don't clear the Cookies/Session ID, my webapp will detect the exiting Session ID (From main site), and fail to login, as it unable to access any data/info from it, since it is a different session ID and from different server
I have a CMS admin created using Joomla 1.5. And Client doesn't want to upgrade it. The CMS has a Database having all user details
Joomla 1.5 stores a login session reference in jos_session table.
I have 2 domain hosted on different server and I'm accessing Database of 1 domain from other server. I'm able to login from both domain with same user credentials independently.
However I cannot concurrently log in both domain using same credentials as jos_session reference gets override. And as I check the other domain its auto logs out user.
Is there anyway to allow concurrent login using same user credential available on single database and some changes that can be done to store user session reference in jos_session ?
You cannot share sessions like that across sites as the session cookie won't match or be created. There are several extensions on JED which allow you to share data (like users) and sessions across sites, you can find them here
I am working on a SaaS application. We take Shopify / Magento Go etc as reference.
I used CodeIgniter PHP framework.
SaaS Methodology - Multiple database, single code-base
Our SaaS architecture is as follows:
when a customer signup a database is build with his name and contain his specific databases.
when a customer signup he get a sub-domain (Ex: test1.example.com)
The customer can add his own domain that points to the system defined sub-domain. (Ex: test1.example.com to www.mydomain.com )
How to achieve this functionality?
For this you have to go through few configuration options.
Configure DNS: Create sub-domain with *. (ask you host)
You have to configure apache or .htaccess to point all requests coming to your domain point to same directory.
Database Setting: Try to learn how to use multiple database in codeigniter.
That's all. Enjoy!
I think that you should look for the term: " codeigniter multi Tennant app " and as said before, managing too many database isn't a solution!
You can achive proposed SAAS application this way,
There will be 1 database for application itself, and another N number of databases for clients, each new client will have new database.
Allow signup to your clients by asking basic details + subdomain to choose like blogspot do, subdomains taken by existing clients wont be allowed to reuse
When client signup successfully, one separate DB will be created and they will landed to their dashboard. Here one DB server will be fine but should have enough space and other parameter set to handle multiple databases.
Now dahsboard onwards, user will able to see list of functionality to use along with some predefined set of content that will be shared between user and loaded from "app DB". Whatever they do add will goes to their own independent DB
Here codebase will be deployed at one code server and main domain will be mapped to that so login/singup etc will be happen here and user's identification will happen at login level.
App DB: This DB will be responsible to store app level master data, i.e. Client's profile + login details, other admin related stuff which they meant to share to their clients. In case of shopify kind of app, themes, layout, templates can be master stuff that will store into this DB.
User DB: Only user's created, added content and its sub content should be stored. Whatever we can call user's ownership should be stored here.
Note: If its paid service, then you can use good payment gateway like stripe or chargebee to manage all your plans, subscriptions, email notification, dunning, payments log, payment success/failure, payment invoices.
WRT to subdomain and custom domain concept, you can do this using virtual hosting mechanism, you can do with apache as well as nginx server.
- Subdomain: Create config files as per server, put on proper place and any created subdomain will bind to particular pysical virtual directory
- Customdomain: Can create physical directory same as subdomain along with config files but in this case, you will need to ask your client to do DNS binding with our IP addess
In both this case when request comes to our server, server will check if config file and physical directory available tp hit then it will redirect user to destiny forlder.
I have developed a website application that includes a custom built CMS and PayPal payments etc...
My client already has hosting for his main website via the developer of that site.
I wish to host the new application under a subdomain such as:
application.website.com
I have reservations about storing my complete source code on the other web designers server.
Is there a way that the code can remain on my server but with the required subdomain or somehow password protect the folder?
Thanks for the help.
You might be able to store your source code on your server and use the PHP include function to get the pages on your client's website to use the code on your server. I've not tried this so it may not be possible for PHP to communicate between two servers like this, but give it a go and see what happens.
I am developing an online accounting project. I do not want to give my code to the clients, but I have to give control of the domain to them. How can I configure the application such that it uses the Database from my client's domain and the application from my own domain ?
For eg : my application domain in www.a.com and my clients domain are b.com, c.com and so on.
a.com holds the application source code and b.com holds the database.
Now what I want to do is get the application code from a.com and get database from b.com whenever b.com is opened.
Or is there any other way to achieve it ?
Look into setting a CNAME record through your domain name's administration settings and using sub-domains, perhaps.
Here's more information from Google http://support.google.com/a/bin/answer.py?hl=en&answer=47283 and Wikipedia http://en.wikipedia.org/wiki/CNAME_record