Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase mod cookie expiration time #654

Open
frozenpandaman opened this issue Jan 21, 2024 · 3 comments
Open

Increase mod cookie expiration time #654

frozenpandaman opened this issue Jan 21, 2024 · 3 comments

Comments

@frozenpandaman
Copy link

I have to sign back into mod.php almost every single time I open the page, even if my last visit was only an hour ago. Is there a way to increase the time until the cookie expires?

@crazy4cars69
Copy link

Should be this https://github.com/vichan-devel/vichan/blob/master/inc/config.php#L177

I have to sign back into mod.php almost every single time I open the page, even if my last visit was only an hour ago.

Check if your browser has cookies enabled or check if installed all necessary PHP dependencies, also check if you have this enabled https://github.com/vichan-devel/vichan/blob/master/inc/config.php#L183

@frozenpandaman
Copy link
Author

frozenpandaman commented Jan 25, 2024

@crazy4cars69 My browser has cookies enabled, yeah – this is happening on both mobile and desktop, so I'm fairly sure it's something server-side, not just me. I'm checking the mod cookie in my browser and it indeed being set properly… e.g. signing in now makes one that expires in July.

I haven't overridden $config['cookies']['expire'] or $config['cookies']['httponly'] in my inc/instance-config.php so it should be reading both of those default values from inc/config.php. I'm not exactly sure what that second one is doing though or why it's named that (httponly).

@RealAngeleno
Copy link

Is your ip address changing? Or is cloudflare properly configured to pass through ips?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants