Welcome Guest, Not a member yet? Register   Sign In
Changing a config variable after its set in config?
#1

[eluser]delay[/eluser]
I am using ci sessions and I am trying to setup a remember me feature in my login. So in the config file I have
Code:
$config['sess_expiration'] = 7200
; The default setting of 7200 is good if a user doesn't select remember me. If they select remember me I would like to change it in the program to 0
Code:
$config['sess_expiration']=0
. How can I change a config setting from within a model?

Code:
if ($rememberme) {
        $config['sess_expiration'] = 0; //doesn't work
        }


Thanks for any help.


Messages In This Thread
Changing a config variable after its set in config? - by El Forum - 01-26-2008, 02:17 AM
Changing a config variable after its set in config? - by El Forum - 01-26-2008, 02:21 AM
Changing a config variable after its set in config? - by El Forum - 01-26-2008, 02:55 AM
Changing a config variable after its set in config? - by El Forum - 01-26-2008, 03:02 AM
Changing a config variable after its set in config? - by El Forum - 08-21-2008, 02:14 AM
Changing a config variable after its set in config? - by El Forum - 12-06-2008, 06:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB