---
title: Avoid using UserInfo.GetSessionId()
description: "Impact Area Security   Severity High   Affected Element Apex Class (APPCL)   ## Rule ID **SF-AVOID-USERINFO-GETSESSIONID** ## Impact Security-sensitive information may be exposed. ## Remediation Ensure that its use is needed or remove it. **Time to fix** 30 min"
url: "https://community-staging.qualityclouds.com/qcdocs/qc/salesforce-rules/avoid-using-userinfo-getsessionid/"
updated: "2025-03-21"
category: Salesforce Rules
---

# Avoid using UserInfo.GetSessionId()

Impact Area

Security

 

           Severity

High

 

           Affected Element

Apex Class (APPCL)

 

## Rule ID

**SF-AVOID-USERINFO-GETSESSIONID**

## Impact

Security-sensitive information may be exposed.

## Remediation

Ensure that its use is needed or remove it.

**Time to fix**

30 min
