10-01-2017, 02:09 PM
Has anyone integrated UserSpice with CodeIgniter or any other model-view-controller (MVC) framework.
I installed UserSpice (US) in the root directory and everything in the demo pages works correctly.
Now within my CodeIgniter (CI) application, nothing seems to function. With this MVC framework, pages are created programmatically/dynamically within a single page controller within a different directory.
I adjusted all the paths and finally managed to get the header to appear. However, I noticed that even if I log into a UserSpice demo page on the same domain, I'm not really logged into any of the CodeIgniter based pages.
So I tried fooling around with the page 'users/classes/Users.php' to display a dump of the session variable: print_r($_SESSION);
On the demo page that functions properly, it displays:
Array ( [user] => 1 )
But on the CodeIgniter pages, it shows:
Array ( [__ci_last_regenerate] => 1506871995 )
It appears the CodeIgniter framework destroys the UserSpice sessions and overwrites it.
Any advice on rectifying?
I installed UserSpice (US) in the root directory and everything in the demo pages works correctly.
Now within my CodeIgniter (CI) application, nothing seems to function. With this MVC framework, pages are created programmatically/dynamically within a single page controller within a different directory.
I adjusted all the paths and finally managed to get the header to appear. However, I noticed that even if I log into a UserSpice demo page on the same domain, I'm not really logged into any of the CodeIgniter based pages.
So I tried fooling around with the page 'users/classes/Users.php' to display a dump of the session variable: print_r($_SESSION);
On the demo page that functions properly, it displays:
Array ( [user] => 1 )
But on the CodeIgniter pages, it shows:
Array ( [__ci_last_regenerate] => 1506871995 )
It appears the CodeIgniter framework destroys the UserSpice sessions and overwrites it.
Any advice on rectifying?