Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [session-id]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
35 views

System.UserInfo.getSessionId() and metadata API

I am trying to do an API within my Salesforce to get the describe metadata, from winter 19 release notes and this idea that was marked as already delivered (Allow Apex to call Salesforce REST and SOAP ...
0
votes
0answers
16 views

Get valid sessionid to use with Frontdoor.jsp

I have a session established for an external identity user and I'm trying to use the sessionId in frontdoor.jsp to bridge the existing session and login OAuth but Apex UserInfo.getSessionId() nor ...
1
vote
2answers
56 views

Track Mobile Sessions Using Marketing Cloud SDK

We would like to track user sessions on a customer's app using the marketing cloud SDK, but after digging on the internet I haven't find a way to do so. Is it possible?
0
votes
1answer
104 views

Salesforce Workbench -How to login using a session ID instead of username/password?

I am trying to login to Salesforce using Salesforce Workbench. I want to use the session ID, instead of the usual username/password process. Any ideas?
0
votes
0answers
22 views

update global picklist value by tooling api (cannot get session id) [duplicate]

I tried to update global picklist value by tooling api, but in UserInfo.getSessionID() the error SESSION_ID_REMOVED was shown. How can we get session id and update global picklist value? String ...
0
votes
2answers
334 views

How to get session id of a particular user in Salesforce

Is there any way to get session id of a user so that I want to use it in REST API call in Postman to view the response. When I do the api call using my session id, we are recieving invalid user ...
2
votes
3answers
255 views

Unable to aquire valid session id using an apex class

I wrote my own apex class with the following code: @AuraEnabled public static String getSessionId(){ return UserInfo.getSessionId(); } This code works when I import it into my ...
3
votes
0answers
258 views

visualforcePage.getContent() : Maximum redirects (100) exceeded

We are having utility class where we are fetching session Id using visualforcePage.getContent() which we are further using in updating custom metadata records. we released our last version around ...
0
votes
2answers
181 views

How to Redirect to /secur/logout.jsp from @Invocable method

I have a requirement where I want to logout of salesforce when certain statement inside an @invocable method is executed. For this purpose, I am trying to use PageReference to redirect to "/secur/...
1
vote
1answer
90 views

C# Get SessionId returns affinity token empty (“”)

When im doing the GET request to get the affinityToken, its come empty {"key":"b99d9a87-c7db-4f5a-a20d-9419bb2d0ad0!1549978665283!x6db6+hNaLzITCEq9EcjFLyKAjw=","id":"b99d9a87-c7db-4f5a-a20d-...
0
votes
1answer
112 views

OpenId access token does not work for rest api

I want to use OpenId for Salesforce authentication. I have done the following: created an auth provider (like in this tutorial: https://help.salesforce.com/articleView?id=sso_provider_sfdc.htm&...
0
votes
1answer
140 views

Trying to get session id in a batch/queueable apex [duplicate]

I have tried both the below approaches, but still I see only "SESSION_ID_REMOVED" in the debug statements. When I schedule the batch from Developer console, I am getting the "SESSION_ID_REMOVED" in ...
2
votes
1answer
302 views

Can I re-use a session ID outside of Salesforce?

I have an app that lives outside of salesforce on my own servers. I am going to link to it from within a different app that is already in Salesforce. Ideally I don't want the user to have to login ...
1
vote
0answers
80 views

Hide session parameter in the URl

is there a way to hide session id parameter in the URL of an org? Here, an example: https://my-special-org.cs66.force.com/WebApp/secur/frontdoor.jsp?sid=00Z3O000000TVmy%...
2
votes
1answer
435 views

UserInfo.getSessionID() or connected app with consumer key and secret for a rest resource within a same org

I have a rest resource (developed by a vendor) that I am calling in my batch apex class that posts some data. The code is as below and works in partial and dev sandboxes but not in full sandbox as the ...
0
votes
0answers
75 views

Discerning a Production SessionId cookie from a Sandbox one

I'm trying to explore the browser's cookies and identify the Production SessionId. The thing is when i retrieved all the cookies filtered by sid, which is how they're called, I recieved over 30 (...
1
vote
1answer
278 views

Possible to make API GET calls directly with the browser?

Im following this documentation about report filters via URL: https://help.salesforce.com/articleView?id=reports_filter_url.htm&type=5 But treat this only as use case example. I want to clarify ...
0
votes
1answer
198 views

Session API validity

We have currently configured Session timeout as 2 hours on the API User Profile. Our Org. is connected to a .net application using these API User credentials. Say connection is established ...
2
votes
0answers
66 views

Provide from apex code to external service session id, which does not invalidate on logout

In our application when user clicks at specific button on the page http callout to external service is triggered from apex code on the server side. As one of the parameters we are passing session id ...
1
vote
0answers
125 views

Setting Session-Based Permissions via Connected App

Here's my use case: We have API-only users who authenticate using the OAuth 2 web server flow and access SF via a ConnectedApp . At the time of auth / refresh, we want to activate a session-based ...
2
votes
1answer
508 views

SOAP method of authentication

I came across SOAP method of authentication described in the below link: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_login.htm?search_text=login Using the ...
2
votes
2answers
11k views

“Session expired or invalid”,“errorCode”:“INVALID_SESSION_ID” while making REST call via cURL

I'am trying to make a REST call via cURL with the credentials I have. But I get an error message saying INVALID_SESSION_ID. Below you can find the call I'am trying to make which consists of my Access ...
3
votes
0answers
4k views

INVALID_SESSION_ID: … Session not found, missing session hash:, Happening randomly

we are getting SOMETIMES following error messages when we call a custom SOAP WebService from Biztalk: INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session. Session not ...
1
vote
1answer
1k views

Session Id from Developer console and session Id from SOAPUI

I got session id from Developer console and as well as from SOAPUI at a time. But both are giving different session ids, but both the session ids are working properly. What my questions are a) Why ...