We cannot define in files for particular folder??
Because we had 4 websites in single instance so i want increase session time in suitecrm folder alone.
Its possible??
Iâm not sure. I believe you can change the session.gc_maxlifetime and session.cookie_lifetime in a .htacess file which should allow you to do this.
However the garbage collection of one instance may interfere with the other instances causing the sessions to be removed early. This also assumes that your hosting provider allows setting PHP configuration in .htaccess.
Best thing to do would be to try and see how it goes.
Itâs hard to say what the issue is since it is working on your test instance. Is your apache server configured the same?
Youâll have to ensure that mod_php5 is enabled and that you have enabled AllowOverride Options or AllowOverride All.
If it still isnât working you could perhaps look into doing ini_set calls on each instance to set the values. See the Other Interfaces section of my previous link: http://php.net/manual/en/configuration.changes.php
as you did, however my sessions were still timing out as on your production server. Eventually I tracked it down to the fact that on my server I have several sites and all of them share the same session storage ("/var/lib/php"). One of these sites were timing out my SuiteCRM sessions. I created a folder for SuiteCRM to store itâs sessions and added this line to my .htaccess file -
I have single site only in the server. But if i use same commend in htaccess file, its not working. Where i can implement the code âhtaccessâ or any server config file.