Jump to content
  • 0

[FluxCP] How to require a user to login first before seeing a page


Question

Posted

Hi,

 

I was wondering how do I require a user to login first before seeing a page. For example I want to restrict people from accessing the mob database by logging in first before they can search.

 

~Jess

2 answers to this question

Recommended Posts

Posted

maybe this will help,

if(session_status()!=PHP_SESSION_ACTIVE)

or you can refer to php.net about session(s)

Thanks man, I snooped around some php files and found this:

 

$this->loginRequired();
 
solved my problem :)
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...