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?
I don't know exactly but I think this link will help you ..https://success.salesforce.com/answers?id=90630000000goVqAAI
Still that is an idea in community to prevent multiple active sessions for a given user account
http://(https://success.salesforce.com/ideaView?id=08730000000Jmi2)
We call this situation as Concurrent Sessions. You can achieve this with the flow and custom code.
https://developer.salesforce.com/docs/atlas.en-us.securityImplGuide.meta/securityImplGuide/security_login_flow_limit_concurrent_sessions.htm
--
Thanks,
Prashant
@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?