Zebra Session & HybridAuth

64 views
Skip to first unread message

Shawn Rebelo

unread,
Nov 7, 2014, 5:17:30 PM11/7/14
to hybri...@googlegroups.com
I recently started using Zebra Session PHP Class. Once I got that running, it gave HybridAuth issues. "You can not access this page directly". Even stranger, when I print out the session, I see everything there. Somewhere along the line it is loosing the session, but not really? Or it can not read the session? I would go into Storage.php and print out the session in Function get.

Then I also checked where it originated form.

There error came from EndPoint.php:
$provider_id = trim( strip_tags( Hybrid_Endpoint::$request["hauth_start"] ) );
$provider_id is empty.

Which triggered:
if( ! Hybrid_Auth::storage()->get( "hauth_session.$provider_id.hauth_endpoint" ) )

---

Zebra session stores into the DB. And again, printing out the sessions showed me $_SESSION["HA::CONFIG"] & $_SESSION["HA::STORE"] with values. Saying I am logged into Facebook ect... I think.

Miled

unread,
Nov 7, 2014, 6:01:03 PM11/7/14
to hybri...@googlegroups.com
because hybridauth endpoint (i.e, hybridauth/index.php) is isolated of your application it won't be aware of custom handlers and you should include, and instantiate Zebra_Session on that file also.

let me know if works.

Shawn Rebelo

unread,
Nov 10, 2014, 12:03:41 PM11/10/14
to hybri...@googlegroups.com
Took some messing around, but ya.. .got it. Did not think of using the index.php. Strange it calls that file? I mean, I have my own file outside of the folder that runs hybrid auth that calls the config and Auth.php called socials.php. How does calling these two files in my file mysteriously call up index.php which also calls Auth.php, again? Seems strange.

ANY WAYS!
It is working though, all that matters right now.
Reply all
Reply to author
Forward
0 new messages