laravel-vanilla-integration icon indicating copy to clipboard operation
laravel-vanilla-integration copied to clipboard

Clear Vanilla Cookie

Open johnvic opened this issue 12 years ago • 3 comments

Hi Shawn,

I am new to GitHub and I dont know where to put question regarding your laravel-vanilla-integration application. So, this is a question rather than an issue. I have used your application on one of my site and it was really a great help to me. I want that when the user has logged out in the main site and so in the vanilla forum. How am I supposed to that?

I have seen this on your notes and I thought this could be the answer.

To force Vanilla to clear its authentication cache use the following code to drop its cookies:

setcookie("Vanilla", "deleted", time() - 1,'/', "", false); setcookie("Vanilla-Volatile", "deleted", time() - 1, '/', "", false);

If it is, where the I put these code?In the main site or vanilla?

Thank you

johnvic avatar Mar 06 '13 07:03 johnvic

You can put that code in your application's logout method. That should invalidate your vanilla auth.

On Wed, Mar 6, 2013 at 8:36 AM, johnvic [email protected] wrote:

Hi Shawn,

I am new to GitHub and I dont know where to put question regarding your laravel-vanilla-integration application. So, this is a question rather than an issue. I have used your application on one of my site and it was really a great help to me. I want that when the user has logged out in the main site and so in the vanilla forum. How am I supposed to that?

I have seen this on your notes and I thought this could be the answer.

To force Vanilla to clear its authentication cache use the following code to drop its cookies:

setcookie("Vanilla", "deleted", time() - 1,'/', "", false); setcookie("Vanilla-Volatile", "deleted", time() - 1, '/', "", false);

If it is, where the I put these code?In the main site or vanilla?

Thank you shawn.

— Reply to this email directly or view it on GitHubhttps://github.com/ShawnMcCool/laravel-vanilla-integration/issues/1 .

Shawn McCool | Big Name [email protected] heybigname.com

ShawnMcCool avatar Mar 06 '13 08:03 ShawnMcCool

Hi Shawn,

Thank you for the quick response. Will apply it now and let you know the result.

johnvic avatar Mar 06 '13 09:03 johnvic

Hi Shawn,

I have put the code at logout method in my laravel application and it is not working sadly.

johnvic avatar Mar 06 '13 09:03 johnvic