Welcome Guest, Not a member yet? Register   Sign In
Running Multiple Applications with two CodeIgniter Installations
#1

[eluser]gojo[/eluser]
I have been thinking about this all day I would love any coherent advice on the subject.

I have two facebook apps one for writers and one for readers in test mode at the moment and for simplicity they have two different localhost addresses
https://localhost/readers
https://localhost/writers
but I have decided it would be better to have one website when it goes live say
https://www.books.com and have the two facebook apps in seperate codeigniter installations so one in
https://www.books.com/readers and the other in https://www.books.com/writers that way they can share the image directory etc but have seperate sessions.
My brain aches from trying to work out how to do this can anyone help explain what I need to do and will they be able to share the images and have seperate session controls?
Thanks in advance if anyone can help gary
#2

[eluser]TheFuzzy0ne[/eluser]
In a nutshell, all you need is two separate directories, each with it's own index.php. That way you can use a different environment for each.

However, your sessions will not be separate. I think that the only way you're going to achieve that, is by mapping each app to a separate subdomain. Boths apps can share the same system directory, and both can have their own application directory. However, sharing images between both could get tricky.

One solution might be to host your images on yet another subdomain. Alternatively, if you are running your own server, you should be able to do a little magic with some symbolic links, so the image directory resides in a single place, and you can link to it from your apps.

I hope this helps stop your brain aching. Smile
#3

[eluser]gojo[/eluser]
So it might then be better to just merge the two together into one installation but have 2 apps still on facebook one pointing to the readers and one to the writers, that way they can easily share the images.
Since they both need their own login to facebooks can I handle this in their shared session i.e have a fb_reader and a fb_writer login, so that if a writer was logged into the writer part in another window/tab he could check out the reader part and the sessions would remember he is in both.
#4

[eluser]TheFuzzy0ne[/eluser]
I've never written a Facebook app, so I don't know for certain. But how you manage your session data is up to you, and I don't think what you're proposing will be a problem.
#5

[eluser]gojo[/eluser]
Thanks TheFuzzyOne I will make backups and try this.




Theme © iAndrew 2016 - Forum software by © MyBB