News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Test if user logged in on integrated website

Started by papaworx, May 05, 2012, 11:28:19 AM

Previous topic - Next topic

papaworx

I have progressively updated my installation. It used to be that I could 'require("SSI.php")' and then test, if a user was logged in. But now calling SSI, immediately redirects the user to the login page. How can I test for login status, without sending a user to login screen. I want to be able to treat logged in users differently than non-logged in users.

Colin

Login Function:
Shows a login box only when user is not logged in.

<?php ssi_login(); ?>
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Advertisement: