U
U
uurg2020-09-10 19:26:45
CodeIgniter
uurg, 2020-09-10 19:26:45

How to properly implement session checking in CodeIgniter?

Good evening.

I just started to delve into php frameworks, so such a question about authorization -
How best to implement the admin session check?
That is, make a separate controller for the admin, consisting only of admin functions and check the session at the very beginning, or add the same functions to other controllers (for example, a controller that works with blog posts, and there is also a function that allows you to edit / delete them) and carry out check directly in them?

I apologize if I described it incorrectly somewhere,
thanks in advance for your help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Toropov, 2020-09-11
@uurg

What is the best way to implement admin session checking?

You can see how others have done it before you: DX-
Auth authorization page.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question