hi im looking for nice admin system for CI and i found FAL, its great - i will implement it to web page that i build but i got few questions.
FIRST
in controller i got
$this->output->enable_profiler(TRUE);
$this->freakauth_light->check('admin');
so when u login
SELECT * FROM ci_sessions WHERE session_id = 'a9f025a6b02ba1d28d40a92be898ec1a' AND last_activity > 1188885660
UPDATE ci_sessions SET last_activity = 1188892860, user_agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.', ip_address = '127.0.0.1', session_data = 'a:9:{s:10:\"country_id\";s:1:\"0\";s:5:\"email\";s:7:\"aa@a.pl\";s:10:\"last_visit\";s:19:\"2007-09-04 09:59:58\";s:7:\"created\";s:19:\"2007-09-04 09:59:58\";s:8:\"modified\";s:19:\"0000-00-00 00:00:00\";s:2:\"id\";s:1:\"2\";s:9:\"user_name\";s:5:\"admin\";s:4:\"role\";s:5:\"admin\";s:22:\"flash:new:flashMessage\";s:32:\"You have successfully logged in.\";}' WHERE session_id = 'a9f025a6b02ba1d28d40a92be898ec1a'
UPDATE ci_sessions SET last_activity = 1188892860, user_agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.', ip_address = '127.0.0.1', session_data = 'a:10:{s:10:\"country_id\";s:1:\"0\";s:5:\"email\";s:7:\"aa@a.pl\";s:10:\"last_visit\";s:19:\"2007-09-04 09:59:58\";s:7:\"created\";s:19:\"2007-09-04 09:59:58\";s:8:\"modified\";s:19:\"0000-00-00 00:00:00\";s:2:\"id\";s:1:\"2\";s:9:\"user_name\";s:5:\"admin\";s:4:\"role\";s:5:\"admin\";s:22:\"flash:new:flashMessage\";s:32:\"You have successfully logged in.\";s:22:\"flash:old:flashMessage\";s:32:\"You have successfully logged in.\";}' WHERE session_id = 'a9f025a6b02ba1d28d40a92be898ec1a'
UPDATE ci_sessions SET last_activity = 1188892860, user_agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.', ip_address = '127.0.0.1', session_data = 'a:9:{s:10:\"country_id\";s:1:\"0\";s:5:\"email\";s:7:\"aa@a.pl\";s:10:\"last_visit\";s:19:\"2007-09-04 09:59:58\";s:7:\"created\";s:19:\"2007-09-04 09:59:58\";s:8:\"modified\";s:19:\"0000-00-00 00:00:00\";s:2:\"id\";s:1:\"2\";s:9:\"user_name\";s:5:\"admin\";s:4:\"role\";s:5:\"admin\";s:22:\"flash:old:flashMessage\";s:32:\"You have successfully logged in.\";}' WHERE session_id = 'a9f025a6b02ba1d28d40a92be898ec1a'
why there is so many update querrys?
SECOND i install FAL in clean CI project(to test it) and it works great.
(my controller with
$this->freakauth_light->check('admin');
if not logedin it redirects to your login panel and then back, if u refresh few times u see only one querry
SELECT * FROM ci_sessions WHERE session_id = 'a9f025a6b02ba1d28d40a92be898ec1a' AND last_activity > 1188887032
)
So i dit the same with my web project the (same database)
I put into my admin controller
$this->freakauth_light->check('admin');
and after f.e 3 refresh of page it logout me all the time (i see there is some insert querry which shouldnt be there)
INSERT INTO ci_sessions (session_id, ip_address, user_agent, last_activity) VALUES ('0a8e9878896a3a2ec7ac9a81ad30b7db', '127.0.0.1', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.', 1188894627)
SELECT * FROM ci_sessions WHERE session_id = 'a9f025a6b02ba1d28d40a92be898ec1a' AND last_activity > 1188887427
i know its because
$autoload['libraries'] = array('session');
and im useing
$this->session->set_userdata(...
I want to use FAL so how i can intergrate it?