building a mod question |
| |||
I'm building a huge mod I want to stop access to the page unless user is not loged in. I'm using below code on page load but it can still let users in after user logs out. Seems Jcow's sessions don't fully clear on logout, is there another way to check if user is loged in without setting private settting in admin? [code] if (!array_key_exists('uid', $_SESSION)) { } }
|
| |||
if you make a module and you set it to protected, a not logged in user (guest) cannot access this module. example the browse module. in browse.install.php function browse_menu() {
}
|
| |||
You can use need_login() in the starting of index()function...like this: [code] need_login()
|
| |||
thanks all for help i got it in end i left session on gaming mod wich i added for you all here to use http://community.jcow.net/forums/viewthread/474
|