RSS

LuxCal Forum

The place for questions, suggestions and news about the LuxCal Event Calendar

User:   Password:   Remember Me?   
LuxCal Forum / General / Support / single sign on problems
Posted:  18 Mar 2014 13:10
hi,
I'm using this page to embed the calendar:

<?php
  include("header.php");
  session_start();
  $_SESSION['lcUser'] = 'user6-admin';
  var_dump($_SESSION);
?>
<div id='calContainer'>
  <iframe id='luxcal' src='cal/?hdr=1&cP=2'></iframe>
</div>

What I get is a page with the embedded calendar all right, but the login is not working (I see 'Public view' in the upper right corner) while the var_dump writes to screen the following:
array(3) { ["uName"]=> string(3) "sss" ["uID"]=> string(2) "17" ["lcUser"]=> string(11) "user6-admin" }

I can obviously login to the calendar by clicking on login and entering "user6-admin" with his password.

Why is this happening?
Thanks
FP
Posted:  18 Mar 2014 21:57
Hi FP,

Looks ok to me.
What LuxCal version are you using?
At which point did you add the var_dump?
Could you try to use the user's email address to log in via single sign on.

Roel
Posted:  19 Mar 2014 11:57
I'm using 3.2.2.
As you see in the code in my previous post, the var_dump is right after the session initialization.

I just noticed that if I use firefox in private browsing mode, everything seems to work.
But if I use it normally, it doesn't login.
I tried with this code with no luck:

<?php
session_start();
    session_unset();
    session_destroy();
    session_write_close();
    setcookie(session_name(),'',0,'/');
    session_regenerate_id(true);
session_start();

var_dump($_SESSION);
$_SESSION['lcUser'] = 'user4@gmail.com';
var_dump($_SESSION);
?>
<div id='calContainer'>    <iframe id='luxcal' src='cal/?hdr=1&cP=2'></iframe>  </div>

Do you know why?
Thanks
FP