Hi All, i am currently adding the LuxCal calendar to my website and would like to have it work with a SSO. They do provide the information about how to do this but i am a little inexperienced at this and was wondering if anyone can assist with where i should place the script for a PHP-fusion site? Below is what they have provided but i dont know which file to add this to???? hoping that someone can help? Matt
[i]h. Single Sign On (SSO) When the calendar is embedded in a PHP-based website where users have to log in, users logged in on the parent website can be logged in to the calendar automatically in a secure way, using PHP sessions.
To achieve this the parent website scripts should:
start PHP sessions, if not done already, by adding the following PHP statement to the parent website PHP script: session_name('PHPSESSID'); session_start(); PHP sessions must be started before anything is sent out to the browser (like header information), so this statement must be added somewhere at the start of the script. save the user name or the user email address in the session variable 'lcUser' by adding the following statement to the parent website PHP script at any point before the iframe statement with the calendar URL: $_SESSION['lcUser'] = '<user email>'; or $_SESSION['lcUser'] = '<user name>'; The part <user email> or <user name> is a string with the user email address or user name which corresponds to the email address or user name required to log the user in to the calendar (specified by the admin when the calendar user account was created). Because PHP session data are stored on the server, the user name / email address are not visible to the users.[/i]