Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Solution Rick van Biljouw Posted October 14, 2020 Solution Posted October 14, 2020 (edited) Hi all, I'm trying to write a quick script on my site to expose some details about the currently logged in user, based on the active session, and it's been a bit of a struggle so far. Using the following this piece of documentation: https://invisioncommunity.com/developers/docs/members-authentication/developing-single-sign-on-sso-integration-r65/ With the sample code that's there I'm getting nothing but a randomly generated string as a response where I'm expecting the user's display name. I've tried exposing different variables, such as member_id, member_group_id and email all of which print a blank. Any ideas what the issue could be/where to start looking? Thanks! Edit: Damn 🤦♂️ Just as I hit post, I found there was a stray session_start() in one of my includes resetting the session. Mystery solved. Edited October 14, 2020 by Rick van Biljouw Fixed bfarber 1
Recommended Posts