I have a logout button, whose unset and destroy the session when fired.
But the session is going to tmp folder and I can’t logout.
Someone can help me?
I have a logout button, whose unset and destroy the session when fired.
But the session is going to tmp folder and I can’t logout.
Someone can help me?
and this is my _htaccess
php_flag output_buffering on
php_value upload_max_filesize 524288000
# HTID:3703923: DO NOT REMOVE OR MODIFY THIS LINE AND THE LINES BELOW
php_value display_errors 1
# DO NOT REMOVE OR MODIFY THIS LINE AND THE LINES ABOVE HTID:3703923:
Are you sure you add action
get param to the url and it’s value is logout
(case-sensitive)?
Please check it.
If you have done everything correctly post your website address here.
Can you remove the if statment, it’s just a bit useless
thanks for the tip!
can you give me an example how the code would look?
session_start();
session_destroy();
header('Location: index.php');