Session From Different Plugin Got Removed
-
Hi there,
I have developed a plugin which create session while login (Not using wordpress default) but when I reload my page it got destroyed and showing this plugin session only not my created session but when I delete this plugin and destroy all session and then try to create session using login page then my plugin’s sessions are staying without any problem so I think this plugin is deleting my created session.
So need a way to fix this issue.
Here is the session data I am getting after reloading my page.
array(4) { [“GOTMLS_SESSION_LAST”]=> float(1671801506.6523799896240234375) [“GOTMLS_SESSION_TIME”]=> float(1671801573.5380990505218505859375) [“GOTMLS_detected_attacks”]=> string(0) “” [“GOTMLS_login_attempts”]=> int(0) }
NOTE: I created a function to start the session
function register_session_new(){
if( ! session_id() ) {
session_start();
}
}
add_action(‘init’, ‘register_session_new’);Still it got replaced by this plugin
- The topic ‘Session From Different Plugin Got Removed’ is closed to new replies.