Joomla, SSO, Cookies & Internet Explorer problems - Joomla! Forum - community, help and support
hi all,
i hope writing in proper forum section (if not, feel free move question/thread) , try detailed possible. note, did search problem came across questions looked same problem totally else.
we have built custom api connect third company has it's own api. need communicate on ssl , need sign in user without use of password came third party's website. signing in without password used below code:
in chrome needed , after login, user redirected url points 1 of our courses. in chrome works fine , logged in , redirected. in ie however, kicked login screen. when press f5 of sudden logged in , can continue.
now, right after above code added follow line:
which showed me after onuserlogin trigger, , after f5 page refresh session id differs. when continue after refresh, session id stays same. have session id, user get's logged in , session id changes state of user not seem transferred 1 session next. way in internet explorer 11, have not been able test in older version of ie of yet.
i suspect either ie not set cookies (i tried read them ie terrible beast when debugging) or information not transferred or ie remembers 2 session ids (i read somewhere).
some things rule out:
the domain name not have underscore (_) in name.
normal usage of login screen (without sso , normal login screen) seem work properly.
after initial sso login , refresh user can traverse application/site normal (no forced log out or session expirations or anything)
when ie closed (and set clean after after closing ie) , opening again, going through sso results in same issue.
the user logged in (the user shows in dashboard) access seems denied unless page refresh done
if try , me solve this, highly appreciated!
this way joomla 3.3.6 in case wondering.
i hope writing in proper forum section (if not, feel free move question/thread) , try detailed possible. note, did search problem came across questions looked same problem totally else.
we have built custom api connect third company has it's own api. need communicate on ssl , need sign in user without use of password came third party's website. signing in without password used below code:
code: select all
jpluginhelper::importplugin( 'user' );
$odispatcher = jdispatcher::getinstance();
// initiate log in using login plugin trigger
$aoptions = array('action' => 'core.login.site', 'remember' => true);
$xresults = $odispatcher->trigger('onuserlogin', array((array) $ouser, $aoptions));
in chrome needed , after login, user redirected url points 1 of our courses. in chrome works fine , logged in , redirected. in ie however, kicked login screen. when press f5 of sudden logged in , can continue.
now, right after above code added follow line:
code: select all
jlog::add('jsession :: ' . jsession::getinstance()->getid(), jlog::info, 'com_presenter');
which showed me after onuserlogin trigger, , after f5 page refresh session id differs. when continue after refresh, session id stays same. have session id, user get's logged in , session id changes state of user not seem transferred 1 session next. way in internet explorer 11, have not been able test in older version of ie of yet.
i suspect either ie not set cookies (i tried read them ie terrible beast when debugging) or information not transferred or ie remembers 2 session ids (i read somewhere).
some things rule out:
the domain name not have underscore (_) in name.
normal usage of login screen (without sso , normal login screen) seem work properly.
after initial sso login , refresh user can traverse application/site normal (no forced log out or session expirations or anything)
when ie closed (and set clean after after closing ie) , opening again, going through sso results in same issue.
the user logged in (the user shows in dashboard) access seems denied unless page refresh done
if try , me solve this, highly appreciated!
this way joomla 3.3.6 in case wondering.
Comments
Post a Comment