CodeIgniter-Rat
CodeIgniter-Rat copied to clipboard
Can i use array in $config['session_user_id'] ?
Hi dude, can i set array value to $config['session_user_id']
? or you will make it?
so it will check every item in array, when it exist in session then will become session_user_id
default value.
For example i had two types of user_id
in my session (for some reason i can't blend it to one type), there is voter_id
and admin_id
. So my value config will $config['session_user_id'] = array('voter_id','admin_id');
And rat library will check to my session, and will use one of them if it match or exist.
You can do whatever you wish. I won't do this, because it seems to be a particular use case. It is weird that you are not able to have a user id...