I have changed the settings to show the user a sale notification within the first 10 seconds, and lets say they get served with “Bob bought X, 2 hours ago”.
If the user navigates to another page, they again get served with “Bob bought X, 2 hours ago” after 10 seconds.
Is there a way to keep track of the user and not show them the same notification by looping from the beginning every time?
Or if the above is not possible, at the very least, can we randomize the notifications?
Thanks!
]]><script>
function loadcheck() {
setInterval(function(){
var login = is_user_logged_in()
if ( login == true ) {
alert("You are logged in");
} else {
alert("You have been logged out");
} }, 10000);
}</script>
]]>Go to page and refresh it show be as logged in user. Please check
Thank you
]]>Now NinjaFirewall says that the user session created by it is getting destroyed. Disabling plugins one-by-one proved that mb.miniAudioPlayer is the plugin causing the problem.
The developer of NinjaFirewall says your plugin is probably creating a new user session without first checking to see if one has already been started. In case you are unfamiliar with NinjaFirewall, it uses the “auto_prepend_file” directive to start it’s firewall code before any other PHP files get loaded. So maybe you need code like this…
if(empty(session_id()) session_start();
Thanks.
]]>I too have that annoying warning.
I was wondering whether it could be related to plugins (or PHP-Apache modules and settings) caching the page or removing Set Cookies on headers. What do you think?
I’m trying to whitelist nfw_goodguy (is the cookie flag, right?) and ninjafirewall.php in W3TC and will post any results here.
Let me know if you’re interested in looking on this issue with me.
Best,
– Luca
https://www.ads-software.com/plugins/ninjafirewall/
]]>Can any1 plz guide me through how to implement session in wordpress so that whwn the user login that user should have his own profile page displaying his name on top.
Thanks
]]>i am trying to store user session over elastic cache. i am able to configure elastic cache with w3tc plugin. But when i flush the cache from the memcache(elastic cahe aws) my user still remain logged in the account.
Could somebody please help me over it.
]]>https://www.ads-software.com/extend/plugins/image-store/
]]>