Welcome Guest, Not a member yet? Register   Sign In
Session retrieval and sharing
#1

[eluser]carlos[/eluser]
Hi,

I'm developing an application which will have an unusual scenario, which I describe step by step here:

There is a main site using code igniter, with user authentication.
One of the modules, using code igniter too, lives in a different server.
The module is displayed in the main site using an iframe.
The module is only accessible if a user has logged in.
The main site and the module save session data to a database.
Both sites share the same database schema and server.

The aim is that the user use the same session in both parts of the application, by passing the session ID from one to the other in the URL and retrieving the data from the DB.

Is that possible? Any idea how?

Thanks a lot for your collaboration.

Carlos
#2

[eluser]toopay[/eluser]
It possible, using cURL or my ProxyLibrary to retrieve the response from other apps. But it will consume your Server memory much more than ussual.

Did you mean different domain (but live in one server) instead completely different server, yes? Because you always can share one CI system (with other resource, like modules) to several apps (even it have different domain, but it should live in one server as a requirement).
#3

[eluser]carlos[/eluser]
Thanks toopay,

I mean same domain, different servers.

Do you have a better idea?

Thnaks,

Carlos




Theme © iAndrew 2016 - Forum software by © MyBB