[eluser]Frank Liu[/eluser]
Does anyone know of a way to do this?
Let's say I have 3 apps:
/app1/config/
/app1/models/
/app1/views/
/app2/config/
/app2/models/
/app2/views/
/app3/config/
/app3/models/
/app3/views/
and I want to share a single session table for the backend, what are the appropriate settings?
The problem i found was somehow the session data is "refreshing" so i would lose session
data when I go across apps.
[eluser]stommert[/eluser]
Yes you can share sessions over multiple applications, as long as they have the same domain.
Just check your config file. In the comments it tells you how.
gr
[eluser]danphilibin[/eluser]
I looked all through the config file but there was no mention of how to share session data across multiple applications. The domain is same, and they're both connecting to the same database that stores session data, and yet, as soon as I move from one application to the other, the session data is destroyed. What do I need to do to keep the session going across multiple applications?
[eluser]stommert[/eluser]
Hi,
You might want to remove any underscore in your cookie name.
An other option is to use a session table. It is easier to debug (because you see what data is stored in the session) and if you use multiple webservers, you don't have to migrate the session.
good luck..
[eluser]danphilibin[/eluser]
Removed the underscore and it still doesn't work. And I am using a database for sessions, it's called 'rr_sessions'. Any other ideas? Anything I could do to debug and figure out what the problem is?
[eluser]stommert[/eluser]
hi,
did you try to romove the cookies before refreshing?
I don't see you're session veriables in your profiler, Did you add the MY_Profiler to your libraries. Does the session_id change with every request/reload of the page?
The data in the session table is json encoded. but i did not see the 'is_logged_in' veriable in your post. (please use the code highlighting function in this editor). what are the all config veriables related to the session / cookie for both apps?
I Hope you find the problem, because it shouldn't be one....