0

Hey guys, what the best practice for session check without duplicate code. I mean when check the session in some controller I have to duplicate the code to other controller, and that is not a good idea.
<?php

class Ctrl extends Controller
{
   private function _ses_check() {...}
}
class Second_ctrl extends Controller
{
   private function _ses_check() {...}
}

Where I have to write this "main" things. Write in Model is again bad idea.
For that reason I write this topic. Thanks in advance!

2
Contributors
1
Reply
2
Views
5 Years
Discussion Span
Last Post by pritaeas
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.