General Community > Scripting Help

Test if user logged in on integrated website

(1/1)

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.

--- Code: ---<?php ssi_login(); ?>
--- End code ---

Navigation

[0] Message Index

Go to full version