User session
-
It seems that the user session set by NinjaFirewall was not found by the firewall script. You may get blocked by the firewall while working from the WordPress administration dashboard.
Though still I have not been blocked even once.
-
Hi,
Does this message appears permanently or randomly ? For instance, if you reload the firewall “Overview” page, it is still there ?
yes it remains there even after reloading
Can you upload this PHP script to your WordPress document root:
<?php if (! session_id() ) { session_start(); echo 'Starting session.<br />'; } else { echo 'Session was already started.<br />'; } echo 'Checking "nfw_goodguy" session flag: '; if ( empty($_SESSION['nfw_goodguy'])) { echo ' ERROR: not found.'; } else { echo ' OK, found it.'; } ?>Then go to http:/ /yoursite/thisscript.php and paste here the results.
Session was already started. Checking "nfw_goodguy" session flag: ERROR: not found.This is the result
Create another PHP script with the following lines, and save it as info.php:
<?php phpinfo(); ?>Then run it and paste here the values of:
session.cache_expire
session.gc_maxlifetime
session.use_cookies
session.save_handler
session.save_pathlocal value Master value
session.cache_expire 180 180
session.gc_maxlifetime 1440 1440
session.use_cookies on on
session.save_handler files files
session.save_path /tmp /tmpThat looks fine.
Some other suggestions:1. It could be an issue with canonical domain:
See https://ww.wp.xz.cn/support/topic/sessions-not-working-tried-everything
2. If ‘session.cookie_domain’ is set, ensure it uses the correct domain name. It is better to leave it blank.
3. You have a caching plugin.
4. You are running PHP 5.3 with ‘register_globals’ enabled.1.I will look into it
2. session.cookie_domain – no value
3. it was working fine before with caching plugin – I will try disabling and activating it again.
4. its 5.4I couldn’t find the problem for now.
so will this cause any serious problem like allowing attacks ?
Hi
This does not make any problem with the site security.
The only issue is that, because you – the admin – are not whitelisted, you could be blocked by the firewall when working from the admin dashboard.
For instance, if you edited some an article and inserted some Javascript code, the firewall could block you because it would think this is a XSS attack.
In most cases, it is just a minor annoyance for you.oh ok thanks for your usual quick support π
I forgot to mention in my previous message, that the “Live Log” feature may not work if you have issue with PHP session.
Did you try it? Does it work?live log is not working
“Error: Live Log did not receive the expected response from your server:”
off-topic:-
can your firewall be compared with modsecurity ?
If Live Log is not working it is clearly a PHP session issue on your side. You may need to check with your host or admin about that.
NinjaFirewall can be compared to ModSecurity and also the PHP Suhosin extension (both are very good module/extension) The main differences are:
-ModSecurity and Suhosin require root access to be installed and setup. NinjaFirewall does not, and can be setup at the user level.
-ModSecurity hooks at a lower level (HTTP server), and NinjaFirewall at the PHP level. That is not too much a problem with WordPress because it is all written in PHP.
The topic ‘User session’ is closed to new replies.