XF 1.4 How to reset sessions ?

Recep Baltaş

Well-known member
Hi, we have started using Sucuri service but they have made a "little" mistake of enabling fully caching and this led to users finding themselves in other people's accounts.

We have disabled caching and the problem seems to be solved but I want to make sure by resetting sessions.

How can I do that ?

Thanks.
 
Last edited:
Truncated the tables but I am still logged in. Any idea ?

I am admin. But I have also truncated Admin Sessions...

//Let's change the cookie prefix.
 
Last edited:
If you chose the "stay logged in" option, you don't depend on the session. There isn't a bulk way to invalidate that.
 
Well it will work by changing what XF reads, but it doesn't actually invalidate the old data. If someone has the old cookie value, they could still change the name on it and it'd work.
 
Since I am 100% sure that none of them know how to change it, it will work :)

Do I have to provide a domain name ? How should it be ?

Our web site:
Code:
https://www.technopat.net/
Forum:
Code:
https://www.technopat.net/sosyal/

PHP:
$config['cookie'] = array(
    'prefix' => 'xft_',
    'path' => '/',
    'domain' => ''
);
 
Top Bottom