-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Sharing Session with Codeigniter app on same domain. #1035
Comments
The /me endpoint just returns the info of current user based from the session data. It does not point to a table. As to the users table that is 'not found', it may be hidden or protected by the authorization.tableHandler. |
This particular config hides the users table and prevents any operation on it. It's the
Instead of this, you may try the following to just hide the password column (as well as any other column that you want to hide). Couple it with multiTenancy handler to limit access only to current users' own data. You can also check on the type of ' |
I think it doesn't override the session value, rather, the problem maybe due to different session drivers or path @mevdschee ? Like Codeigniter has its own file or even database table to save its session data while php-crud-api also has a different save path for its session. |
I made them both to use the PHPSESSID generated by the native session. |
Can you share your use case for this? Maybe, if you are just accessing the php-crud-api endpoints from the codeigniter app, you don't need to maintain user session in the php-crud-api and just use the codeigniter session. It is possible to use |
Is there a way to access the session variables of php-crud-api which is installed on https://domain.com/folder/ from Codeigniter app on https://domain.com
I tried setting their session name similar but It seems to override the session values and destroy the session.
Also, I can't seem to find any info in the documentation about updating user info in the database.
i tried PUT on /me/ endpoint and /records/users/ endpoint.
It says table not found, however, table is there with name,email and passwords stored in it.
Any help will be appreciated.
The text was updated successfully, but these errors were encountered: