Comments (6)
We can just change the session time of the logins, it is currently in the users.php file. I'll see about making it a custom variable.
from organizr.
A per user basis would be awesome but if it's just the admin account that can be easily increased or sit indefinitely that would be awesome
from organizr.
I found the issue. Currently, the PHPSESSID cookie that gets created has a default lifetime of '0' and is destroyed when the browser closes. So closing the browser completely causes the user to have to log back in when they open it. I added the following to the top of user.php and it now works as I hoped:
$lifetime=86400; // (86400=24 Hours)
$path='/';
$domain='.domain.com';
session_name('organizr_session');
session_start();
setcookie(session_name(),session_id(),time()+$lifetime,$path,$domain);
To match, I also changed, though I'm not sure if this gets renewed every time the page is refreshed.
const time_out = 86400;
It sets the cookie lifetime to 24 hours and renews it whenever the user visits the page. Therefore, they'd have to not visit at all for 24 hours, the cookie would expire, and they'd have to log back in.
from organizr.
yea, we are using PHP Session variables instead of Cookies for security reasons.
from organizr.
from organizr.
I will follow up on this prior to v1.0 :)
from organizr.
Related Issues (20)
- [Feature Request] Require 2FA from users HOT 1
- Google Authenticator disabling HOT 6
- Login Loop, no reverse proxy or other additions. HOT 10
- Calender not scaling on mobile HOT 5
- [Question] Organizr hardware accelerated Android TV app? HOT 2
- Dependencies Missing FILEINFO & MBSTRING HOT 30
- Organizr Vulnerabilities
- Plex Oauth Login not working HOT 4
- Donation arrows doesn't change price HOT 4
- Upgrading from 2.1.1690 to Latest Version HOT 2
- "Slim Application Error" after starting the Docker container HOT 10
- Calendar Item's backdrop images are missing HOT 4
- Feature suggestion: Import tabs from CSV HOT 2
- Unable to get docker install to recognise that I'm outside of local network. HOT 9
- allow changing iframe name HOT 1
- Unable to use Nextcloud Talk in an iframe because of allow attributes HOT 4
- 502 Bad Gateway HOT 1
- Lidarr settings for Self Signed Certficate are ignored. HOT 1
- Test Contributors HOT 12
- Both qBittorrent Complete and Seeding show up even though set to hide.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from organizr.