|
Posted by J.O. Aho on 10/28/06 14:44
Mike wrote:
> I need to change a setting in the php.ini file but the host won't
> change it.
A host won't just change the settings they have decided is best for them and
most of the users.
> I know I can put the following before the session_start()..
> ini_set('session.use_cookies',0);
You can make an include file with ini_set() to change all the settings you
want and then include that include file in all your scripts, will lessen the
hassle for you if you have more settings you want to change.
> but do I need to do this on every page or is once enough on say a login
> page?
The setting affects only the script where you have the ini_set(), all other
scripts are unaffected.
> Also, I have read that you can add the following to a .htaccess file...
>
> php_value session.use_cookies 0
This requires that the host has enabled the usage of htaccess, many hosts
don't as this can lessen the security on the system.
//Aho
Navigation:
[Reply to this message]
|