HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
Re: Using Vanilla Session Outside of Vanilla - External Session
It works for me for when I'm logged in and logged out with Vanilla 2.0.18.8. Add var_dump($Session->User); before the end of the file. Does it output data about the user you're logged in with, such as the user ID and name, or does it error out? You don't need to paste the output here if it does have info about the user… -
Re: Using Vanilla Session Outside of Vanilla - External Session
if you modify shadowdare's code above. you can display photos and profile links in external web page $Session = Gdn::Session(); // Declare an alias for the user session. // Check if the user session is valid. if($Session->IsValid()) { // echo "The user is logged in!"; // The session is valid, so the user is logged in.… -
Re: Using Vanilla Session Outside of Vanilla - External Session
So I copied these exact lines to the end of my config.php $Configuration['Garden']['Cookie']['Name'] = 'Vanilla'; $Configuration['Garden']['Cookie']['Path'] = '/'; $Configuration['Garden']['Cookie']['Domain'] = 'http://.crimsonlakemc.com'; but the script you first provided me with is still not showing the user as logged… -
Using Vanilla Session Outside of Vanilla - External Session
So I'm trying to use the Vanillaforum session with my entire website, so that the user can sign up on the forums, and then that same account will be used on the rest of the website. I have some basic code that should show wheter a user is logged in or not but it's not working. Anybody able to help? Vanilla version 2.0.18.1… -
Re: Using Vanilla Session Outside of Vanilla - External Session
Is the forums hosted on the same server as the rest of the website? It's better to use local absolute or relative file paths if this is the case. Here's an example script I just put together that will let you check the user's session outside of Vanilla. Read the comments next to some of code to learn more about what its…
5 results