Community Auth with HMVC |
05-17-2017, 07:21 AM
(This post was last modified: 05-17-2017, 09:08 AM by bpuig. Edit Reason: More info )
I've managed to make it "work" having MY_Controller extend Auth_Controller and having Auth_controller extend MX_Controller. I've said "work" because I'm not able to make the session persist further than the time set on config variable sess_time_to_update.
I'm suspicious that the problem is radicated in the calling multiple times $this->require_min_level(X) set in various scripts through Modules:run('...'). I think this is the cause because if I just to the login and then use a simple page, without calling any module, my session persists longer than sess_time_to_update. I'm testing right now, if I find a solution I'll post it here. EDIT: After testing I found that this session log out happens when Controller_1 calls method Controller_2 via HMVC, buuuut, it does not happen if Controller_1 calls method in Controller_1 via HMVC. I'll keep testing. |
Messages In This Thread |
Community Auth with HMVC - by koficypher - 12-11-2016, 11:04 AM
RE: Community Auth with HMVC - by skunkbad - 12-11-2016, 12:20 PM
RE: Community Auth with HMVC - by koficypher - 12-11-2016, 01:48 PM
RE: Community Auth with HMVC - by skunkbad - 12-11-2016, 03:25 PM
RE: Community Auth with HMVC - by koficypher - 12-11-2016, 11:43 PM
RE: Community Auth with HMVC - by adrianmak - 01-12-2017, 07:05 PM
RE: Community Auth with HMVC - by skunkbad - 01-12-2017, 08:56 PM
RE: Community Auth with HMVC - by bpuig - 05-17-2017, 07:21 AM
RE: Community Auth with HMVC - by bpuig - 05-17-2017, 11:54 AM
RE: Community Auth with HMVC - by skunkbad - 05-17-2017, 06:37 PM
RE: Community Auth with HMVC - by bpuig - 05-17-2017, 11:37 PM
|