Jump to content
  • 0

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


Ninja

Question


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   83
  • Joined:  08/11/12
  • Last Seen:  

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

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   83
  • Joined:  08/11/12
  • Last Seen:  

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 :)
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  350
  • Reputation:   43
  • Joined:  09/07/12
  • Last Seen:  

maybe this will help,
if(
session_status()!=PHP_SESSION_ACTIVE)

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

Link to comment
Share on other sites

×
×
  • Create New...