Activities of "maliming"

https://github.com/maliming

hi

Can you share code or project to reproduce the exception?

Thanks.

hi roberto.fiocchi

We will fix this in Studio.

hi

No problem. However, bot will close the question regularly. You can open it anytime.

Thanks.

ok, We will fix this in suite.

ok, You need the yarn.

see https://abp.io/docs/latest/get-started/pre-requirements#node-js-and-yarn

Great 👍

Your question ticket has been refunded.

Thanks,

hi

Please try override the IdentitySessionManager, We will fix this in next patch version.

using System;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Volo.Abp.Caching;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Identity.Settings;
using Volo.Abp.Settings;
using Volo.Abp.Uow;
using Volo.Abp.Users;

namespace Volo.Abp.Identity.Session;

[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IdentitySessionManager))]
public class MyIdentitySessionManager : IdentitySessionManager
{
    public MyIdentitySessionManager(
        IIdentitySessionRepository identitySessionRepository,
        ICurrentUser currentUser,
        IDistributedCache<IdentitySessionCacheItem> cache,
        IUnitOfWorkManager unitOfWorkManager,
        ISettingProvider settingProvider,
        IdentityDynamicClaimsPrincipalContributorCache identityDynamicClaimsPrincipalContributorCache)
        : base(identitySessionRepository, currentUser, cache, unitOfWorkManager, settingProvider, identityDynamicClaimsPrincipalContributorCache)
    {
    }

    public override Task<IdentitySession> CreateAsync(string sessionId, string device, string deviceInfo, Guid userId, Guid? tenantId, string clientId,
        string ipAddresses, bool setLastAccessed = false)
    {
        Check.NotNullOrWhiteSpace(sessionId, nameof(sessionId));
        Check.NotNullOrWhiteSpace(device, nameof(device));

        using (CurrentTenant.Change(tenantId))
        {
            var session = await IdentitySessionRepository.FindAsync(sessionId);
            if (session == null)
            {
                Logger.LogDebug($"Creating identity session for session id: {sessionId}, device: {device}, user id: {userId}, tenant id: {tenantId}, client id: {clientId}");
                DateTime? lastAccessed = setLastAccessed ? Clock.Now : null;
                session = await IdentitySessionRepository.InsertAsync(new IdentitySession(
                    GuidGenerator.Create(),
                    sessionId,
                    device,
                    deviceInfo,
                    userId,
                    tenantId,
                    clientId,
                    ipAddresses,
                    Clock.Now,
                    lastAccessed
                ));
            }

            var preventConcurrentLoginBehaviour = await IdentityProPreventConcurrentLoginBehaviourSettingHelper.Get(SettingProvider);
            switch (preventConcurrentLoginBehaviour)
            {
                case IdentityProPreventConcurrentLoginBehaviour.LogoutFromSameTypeDevices:
                    await RevokeAllAsync(userId, device, session.Id);
                    break;

                case IdentityProPreventConcurrentLoginBehaviour.LogoutFromAllDevices:
                    await RevokeAllAsync(userId, session.Id);
                    break;
            }

            return session;
        }
    }
}

Thanks, I will check the logs.

Showing 4141 to 4150 of 12930 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on November 02, 2026, 06:56
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.