function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Gauri Kasat 8Gauri Kasat 8 

How to restrict access to salesforce from multiple devices by same user id?

Chandrashekhar GoudChandrashekhar Goud
Hi Gauri
I don't know exactly but  I think this link will help you ..

Still that is an idea in community to prevent multiple active sessions for a given user account
Prashant Pandey07Prashant Pandey07
Hi Gauri,

We call this situation as Concurrent Sessions. You can achieve this with the flow and custom code.


@Prashant Pandey07

I've created the APEX Class and started creating the flow following the 'Limit the Number of Concurrent Sessions with Login Flows' guide (from your link) but im stuck on (4).

It says: From the toolbox, open the Elements tab. Drag a Apex Action (Legacy) element onto the canvas, and select the SessionPlugin legacy Apex action. Store the action’s CONCURRENT_NO parameter in the 'session_no' flow variable.

Problem is, ive created the 'session_no' variable but on the Apex Action Legacy element, when i try to store the action’s CONCURRENT_NO parameter in the 'session_no' flow variable - it doesnt find it in the search under 'Set Output Values' tab. Even when i create the variable from new from the search, it doesn't add. Do you know why this could be?