Base solution for your next web application

Activities of "hung.le@cyberlotus"

Question

Hi,

I'm using .net core + angular product type. I have a issue with chat feature on web site.

I have 2 webs different (.net core + angular), web 1 on Server 1 (this is admin management page for users host), web 2 on Server 2 (this is customer page for users tenant). The webs use the same database and redis server. SignalR only works for users that are connected to the same server, but I want the users can chat from the webs different.

Is there any way to implement?

Thanks

Try

var cacheKey = RoleId + "@" + (TenantId ?? 0); _cacheManager.GetRolePermissionCache().Remove(cacheKey);

I tried iCacheManager.GetRolePermissionCache().Remove("68@6"); but the key "n:AbpZeroRolePermissions,c:68@6" is still on redis cache server. I think I have problem with ICacheManager.

I using the tenant's Id on here:

Thanks.

I tried remove directly the key cache as using iCacheManager.GetRolePermissionCache().Remove("n:AbpZeroRolePermissions,c:68@6"); but it's not working.

Sorry, I can not share my project source code with you. I using method await UpdateGrantedPermissionsAsync(role, input.GrantedPermissionNames, input.TenantId); to change the permissions of a role.

And after i change the permissions, on redis cache it is not remove and the content is not change:

i tried add or remove the permissions of a role, but the content is still not change on redis cache (redis-cli).

Is web server 2 an angular application? No, on server 1 (include backend .net core + angular application) for admin, on server 2: (.net core + angular application) for customer users.

After the user logout and login on the product application again but still not get the latest permission information.

I'm using ICacheManager to remove key("n:AbpZeroRolePermissions,c:1@0") on redis server but it is not working, it's still on redis server.

_cacheManager.GetCache(KEY).Remove(VALUE);

  • My product version is v6.8.0
  • My product type is ASP.NET CORE & Angular

Thanks.

Hi,

I have a issue about roles, permissions. I'm using redis cache for my applications. On the first application (web server 1), i set permissions for the role. But on the 2nd application (web server 2), users do not fetch the new permissions always. After some time, the user gets the permissions. I want the users will get the pissmission always. Is there any way to update these permissions?

Can you help me to resolve this issue?

Thanks.

Showing 1 to 9 of 9 entries