[Plugin: Random Post Box] RPB Plugin Clears Entire Session
-
Hi Random-Post-Box author,
I am also a plugin author of Better Backgrounds and have found this plugin is causing bugs for mine. I have made the fix and hope you can incorporate this into the next release:
On line 57 of random-post-box-load.php
it has the line:
unset($_SESSION['rpb_last_post']);
My plugin is using SESSION to know if the user has already visited the website. So in this plugin, using the “unset” command actually deletes all the cookies. The correct implementation I believe would be:
$_SESSION['rpb_last_post'] = NULL;
Thanks!
- The topic ‘[Plugin: Random Post Box] RPB Plugin Clears Entire Session’ is closed to new replies.