Logout user when admin blocks using codeigniter -


here have little bit confusion in coding. , problem is, when user logged in account. @ time,if admin blocks user whoever logged in. , if user clicks on link user must logout.

i have created bunch of controller in project. so, don't make change in controllers. how write code in short , sweet.?

thanks in advance. :)

you need extend ci_controller , add in __constructor() validation user blocked/not


Comments

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -