drumhrd Posted October 2, 2009 Share Posted October 2, 2009 I need to extend my user sessions out quite a bit from default as my users are going to be uploading very large files. I have attempted to do this via an .htaccess file. But php info seems unchanged. any ideas? contents of .htaccess Options +FollowSymlinks <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} s RewriteRule ^(.*)$ https://www.artists2you.com/s/$1 [R,L] </IfModule> IfModule mod_php5.c> php_value session.gc_maxlifetime 86400 php_value session.save_path "/var/www/sessions" </IfModule> Quote Link to comment https://forums.phpfreaks.com/topic/176271-solved-set-sessiongc_maxlifetime-via-htaccess-file/ Share on other sites More sharing options...
drumhrd Posted October 2, 2009 Author Share Posted October 2, 2009 let me more clear. phpinfo(); still shows defaults..it's like my .htaccess file is not working. Quote Link to comment https://forums.phpfreaks.com/topic/176271-solved-set-sessiongc_maxlifetime-via-htaccess-file/#findComment-929001 Share on other sites More sharing options...
cags Posted October 2, 2009 Share Posted October 2, 2009 I could be wrong, but I wouldn't have personally thought that phpinfos output would be effected by .htaccess files. Quote Link to comment https://forums.phpfreaks.com/topic/176271-solved-set-sessiongc_maxlifetime-via-htaccess-file/#findComment-929013 Share on other sites More sharing options...
drumhrd Posted October 2, 2009 Author Share Posted October 2, 2009 if that is the case how can I verify that the overrides I am putting in the .htaccess is working? Quote Link to comment https://forums.phpfreaks.com/topic/176271-solved-set-sessiongc_maxlifetime-via-htaccess-file/#findComment-929016 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.