CodeIgniter Forums
Session Protect URL - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Session Protect URL (/showthread.php?tid=82567)



Session Protect URL - rashh - 07-24-2022

How to protect all URL by session?
Like those who are logged in, they only can access else not.

I know using a filter but is there any way by not using the filter?


RE: Session Protect URL - kenjis - 07-25-2022

Yes, you need to implement Auth system.
See https://codeigniter4.github.io/CodeIgniter4/extending/authentication.html
Note: Shield is currently beta release.


RE: Session Protect URL - rashh - 07-26-2022

(07-25-2022, 04:47 PM)kenjis Wrote: Yes, you need to implement Auth system.
See https://codeigniter4.github.io/CodeIgniter4/extending/authentication.html
Note: Shield is currently beta release.

I see, but as you said it is a beta release, is there any way to exclude that.