Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wisnudir opened this issue May 16, 2018 · 1 comment
Open

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

wisnudir opened this issue May 16, 2018 · 1 comment

Comments

@wisnudir
Copy link

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.

@avenirer
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants