CodeIgniter-Rat icon indicating copy to clipboard operation
CodeIgniter-Rat copied to clipboard

Can i use array in $config['session_user_id'] ?

Open wisnudir opened this issue 6 years ago • 1 comments

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.

wisnudir avatar May 16 '18 05:05 wisnudir

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...

avenirer avatar May 16 '18 14:05 avenirer