Session being saved in tmp folder

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?

Hi @SrPhilippe
Can you upload the logout script?

1 Like

On localhost it work without any problem

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. :slightly_smiling_face:

Yes.

Here it is https://snakehunters.tk/

Can you remove the if statment, it’s just a bit useless :slight_smile:

thanks for the tip!
can you give me an example how the code would look?

session_start();
session_destroy();
header('Location: index.php');
1 Like