php - Can't change session duration
Get the solution ↓↓↓I have a login system on GoDaddy’s Economy hosting which I get logged out after 30 minutes of inactive, I tried change the session duration to a day with this:
php_value session.gc_maxlifetime 86400 // in .htaccess,
session.gc_maxlifetime = 86400 // in php.ini
ini_set('session.gc_maxlifetime', 86400); // and
session_set_cookie_params(86400); // at the beginning of each page
but it’s still not working
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: uncaught error: call to undefined function mysqli_connect()
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.