Ninja Posted October 20, 2015 Group: Members Topic Count: 54 Topics Per Day: 0.01 Content Count: 513 Reputation: 84 Joined: 08/11/12 Last Seen: July 4, 2024 Share Posted October 20, 2015 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 More sharing options...
Ninja Posted October 20, 2015 Group: Members Topic Count: 54 Topics Per Day: 0.01 Content Count: 513 Reputation: 84 Joined: 08/11/12 Last Seen: July 4, 2024 Author Share Posted October 20, 2015 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 More sharing options...
benching Posted October 20, 2015 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 350 Reputation: 43 Joined: 09/07/12 Last Seen: August 30, 2019 Share Posted October 20, 2015 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 More sharing options...
Question
Ninja
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