Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The staff would like to not have to re-log in so often through out the day.
I have set my
Code:
session.cookie_lifetime
to 0 (that means infinite right?) and yet their sessions still keep expiring. Do I need to adjust something in Apache2 as well?
There's not enough info here about what you are serving.
Could be it sets its own session cookies, or has another way of terminating the session.
Are you talking about some CMS with login capabilities?
It could also overwrite the value of session.cookie_lifetime, or you could have edited the wrong config file, or you could've done it wrong, etc.
Lastly, a quick web search(tm) pulls up a lot of info; what reading/troubleshooting have you done already?
As posted not enough information. What type of script is running, did you write the code? There could be some fixed timeout value in the code itself to timeout the session.
This is all code I have written, no framework, no cms. It's an inventory tracking system, it's accessible only on our office network. No public access. I have set session.gc_maxlifetime to 14400, which should be 4 hours. I'll see if that makes a difference. Startpage brought back many results duck.com did not. Cheers all.
There is no code written to automatically terminate the session.
For a server, cookies are just HTTP headers. If the correct header values are sent at the correct times then it's not a server issue - but without access to the code and the server, nobody here can say if that's happening or not. (Though I wouldn't be surprised if an expiry value is being set once at login and not updated per request.)
Press F12 to open Developer Tools, select the Network tab, then trigger a request and inspect the HTTP headers.
I'd absolutely post some code if there was code to post. I have not written in any code to terminate sessions other than logging out. The ending of sessions in question is related to a server setting.
Since I increased the value of session.gc_maxlifetime in my php.ini file I have not yet experienced a session timing out, so I think that was the setting I needed to adjust. Appreciate the responses guys!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.