So I have a requirement that I’m getting close to stumped on how to complete in Drupal 8.
I’m going to attempt to simplify the requirements. I have two roles. They are essentially mutually exclusive. Let’s call them “Internal” and “Client”.
The request is to have Clients logged in for an indefinite period of time… let’s call it years. Internal users need to be logged in for a short period of time, say 1 day, or even just the session. (Note: I didn’t make these requirements, just coding them… haha)
My understanding of the Drupal login is that there are really two things controlling this… there is the cookie lifetime of a user, and the session lifetime (on the server). If I set the cookie lifetime to 1 week, but the session lifetime is 1 day, the user will essentially be logged out after 1 day, b/c their cookie will match a session that doesn’t exist after a day… is that right?
So, I think I have to start with the upper limit. If I want my user to be logged in for 1 year, I need my server session to be 1 year. One of my questions is: what are the risks/downsides/etc to setting my server session to 1 year? Let’s say my server gets 50k visits a month. What if it’s not 1 year, and I want it at 2 years? I can’t seem to find a definitive guide to what the upper limit of server session should be? It seems like there’s a lot of factors that could clear out that session as well…
Ok, so the above is one question… assuming I can set the server session, how can I have the cookie lifetime visit based on user role? I’m getting to the point where it seems like it just might not be possible to vary this setting, and I might have to do some kind of route subscriber and custom cookies and whanot to detect the internal users, and log them out when I see they’ve been logged in too long…
Any help would be much appreciated…
✓ Extra quality
ExtraProxies brings the best proxy quality for you with our private and reliable proxies
✓ Extra anonymity
Top level of anonymity and 100% safe proxies – this is what you get with every proxy package
✓ Extra speed
1,ooo mb/s proxy servers speed – we are way better than others – just enjoy our proxies!
USA proxy location
We offer premium quality USA private proxies – the most essential proxies you can ever want from USA
Our proxies have TOP level of anonymity + Elite quality, so you are always safe and secure with your proxies
Use your proxies as much as you want – we have no limits for data transfer and bandwidth, unlimited usage!
Superb fast proxy servers with 1,000 mb/s speed – sit back and enjoy your lightning fast private proxies!
99,9% servers uptime
Alive and working proxies all the time – we are taking care of our servers so you can use them without any problems
No usage restrictions
You have freedom to use your proxies with every software, browser or website you want without restrictions
Perfect for SEO
We are 100% friendly with all SEO tasks as well as internet marketing – feel the power with our proxies
Buy more proxies and get better price – we offer various proxy packages with great deals and discounts
We are working 24/7 to bring the best proxy experience for you – we are glad to help and assist you!