Skip to forum content

LuxCal Web Calendar

The place for news, questions and suggestions

You are not logged in. Please login or register.


Post new reply

Post new reply

Compose and post your new reply

You may use: BBCode Images Smilies

All fields with bold label must be completed before the form is submitted.

Required information for guests


Required information

Topic review (newest first)

2

You can create a COOKIE generated by your WebApp and use something like:   

        // COOKIE must be serialized and user data in format
        // username:_:usermail
   
    $autokuki = 'MyAPP_COOKIE_NAME';
    $srvusr = @unserialize($_COOKIE[$autokuki]);
    if (strlen($srvusr) > 1) {
        $srvusrarr = explode(":_:",$srvusr);
        $_SESSION['lcUser'] = $srvusrarr[0];
    }

Paste this code in the index.php of the line immediately after: session_regenerate_id ();

1

I just cannot get SSO to work with my existing web application:

path to the calendar is /calendar/index.php

users login to web application /index.php

I set session variable $_SESSION['lcUser'] = 'user@email.com' when user logs-in

But I am unable to pass the session variable to Luxcal without starting a new session which seems to log user out of my web application..

I don't know if I'm explaining this very well but it seems impossible to integrate?