Jump to content

Session kill


SirChick

Recommended Posts

Damn this is annoying, none of them worked!

 

This is what i got:

 

<?php
If(strtolower($_SERVER['PHP_SELF']) == '/reportedconversations.php' OR strtolower($_SERVER['PHP_SELF']) == '/filereport.php'){}Else{
If(isset($_SESSION['mailpolice'])){
unset($_SESSION['mailpolice']);
$_SESSION['mailpolice'] = FALSE;

$_SESSION['mailpolice'] = NULL;
Echo 'i am here';
}Else{
Echo 'i am not here';
}
}
?>

 

I am here does echo.... so theres no reason for it to not unset right? But it still echo's the session!

Link to comment
https://forums.phpfreaks.com/topic/90383-session-kill/#findComment-463388
Share on other sites

Seems you don't understand what ISSET means.  Since you do set it to FALSE and then NULL right after you unset it, it sets again.

 

Damn this is annoying, none of them worked!

 

This is what i got:

 

<?php
If(strtolower($_SERVER['PHP_SELF']) == '/reportedconversations.php' OR strtolower($_SERVER['PHP_SELF']) == '/filereport.php'){}Else{
If(isset($_SESSION['mailpolice'])){
unset($_SESSION['mailpolice']);
$_SESSION['mailpolice'] = FALSE;

$_SESSION['mailpolice'] = NULL;
Echo 'i am here';
}Else{
Echo 'i am not here';
}
}
?>

 

I am here does echo.... so theres no reason for it to not unset right? But it still echo's the session!

Link to comment
https://forums.phpfreaks.com/topic/90383-session-kill/#findComment-463395
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.