| 
	
 | 
 Posted by Andy Hassall on 11/12/05 14:36 
On Sat, 12 Nov 2005 12:07:27 +0100, somaboy mx <nosuch@fakemail.fk> wrote: 
 
>I need people to be able to complete long text blocks in my cms before  
>their session times out. From the php documentation I gather that ini  
>directive session.gc_maxlifetime would be the one to adjust here. 
> 
>I am on shared hosting, so I can't change the php_ini settings directly.  
>If I use ini_set, should I do that on every page in my cms, or would it  
>suffice to do it on the login page? Or could I do it in a .htaccess file  
>(which my host permits)? 
 
 It's got to be done throughout the site, setting it on the login page isn't 
enough. .htaccess is a convenient place to do it. ini_set would work if you 
have a central inclue file that's included from all the other pages. 
 
 Just increasing the session timeouts in .htaccess on shared hosting may not 
work as expected - you probably need to set a separate session directory as 
well. 
 
 See: 
http://groups.google.co.uk/group/comp.lang.php/browse_thread/thread/c0ac7ba6ff223a82/aaeaa0acb60fb33c 
--  
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk 
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
 
[Back to original message] 
 |