Questions tagged [session]

A session is token that is returned after successful authentication. This is used to identify legitimate user.

Filter by
Sorted by
Tagged with
25
votes
3answers
15k views

Getting Session ID in Lightning

Background I'm using Apex Wrapper Salesforce Metadata API to update some picklist values on the fly. (i.e. Every time a record is inserted/updated/deleted in Table A, I'm adding/subtracting picklist ...
28
votes
2answers
5k views

Different Session Ids in Different contexts

I'm dealing with quite an unusual issue here, and was wondering if anyone had figured this out. I'm trying to implement an OAuth flow from one salesforce instance to another (any other). And one of ...
15
votes
3answers
4k views

Session ID from scheduled jobs

Here's the scenario. I have a remote application which is invoked from an HTTP callout. In this callout, I am passing the session ID. The application can then do its stuff without needing a ...
9
votes
1answer
3k views

Get a FIRST-CLASS SessionID for API Calls (looking for a clean way or alternative)

I am basically facing the same challenge as @Evan here Different Session Ids in Different contexts I'm also running into SessionID related issues, but in a completely different use case. Background ...
3
votes
2answers
2k views

Affinity token missing from SessionId call

I've recently tried using the Live Agent Rest API and I am unable to even establish a session. I'm following the official online documentation, and according to it when I do the initial SessionId call,...
27
votes
2answers
17k views

security token vs session id vs access token

Are all of these three separate values that are only linked for the same user ? For security token I mean on value that you can take from Setup -> My Personal Information -> Reset security token. As ...
6
votes
1answer
711 views

Can we use the use frontdoor link to redirect to a salesforce record directly by passing parameters?

I am currently able to login inside salesforce using just a session id https://eu5.salesforce.com/secur/frontdoor.jsp?sid=sessionId I now want to be able to redirect to a record page by passing 1 ...
10
votes
1answer
18k views

When do Sessions expire?

I note that Session Settings allows you to have sessions expire as often as low as 15 minutes. However, I believe this is related to browser sessions and sure enough they do time out as expected. ...
4
votes
3answers
524 views

Sandbox session gets confused across browser tabs

I have noticed that if I login to a test.salesforce.com sandbox in one Safari tab, and a different test.salesforce.com sandbox in a second tab, that the login sessions can become confused. One tab ...
8
votes
1answer
2k views

Remote Actions and Session Timeout Question

We have a visualforce page that serves as a somewhat live dashboard for information in our salesforce instance. Through javascript and Javascript remoting (remote actions), we are polling salesforce ...
3
votes
1answer
2k views

The page you submitted was invalid for your session

EDIT: I have overridden the New button in Case object and opening a Visualforce page but if I open the page using preview VFP I'm not getting the error and its happening only when I click on NEW ...
3
votes
3answers
2k views

Invalid Session id in Wsdl2Apex

I created an Apex class (global) containing Webservice methods-> generated WSDL out of it->consumed it in a different org. While instantiating the webservice callout, I set the http header to contain ...
2
votes
1answer
1k views

Why isn't curl getting the session id?

curl -v https://test.salesforce.com/services/oauth2/token -d "grant_type=password" -d "client_id=" -d "client_secret=" -d "username=" -d "password=" I've tried this with instance name instead of test ...
0
votes
2answers
174 views

How do I use SessionID for subsequent requests after successfully logging in

One of our provider has a salesforce system in place and they have send us the URL. I added the reference as a Web Reference since adding it as a Service Reference had some issues. Now, I am able to ...
7
votes
1answer
1k views

Session Id not getting refreshed automatically with Custom Auth provider in Salesforce Named Credentials

Problem statement : The Named Credential created for OAuth 2.0 authentication and Custom Auth provider works until the first session Id which was obtained using the method 'handleCallback' is valid. ...
5
votes
1answer
1k views

How can I find the AuthSession that corresponds with the current Session Id?

In my external application I have a Session ID (a.k.a Access_Token) and server URL. This may have been sourced from any number of locations. Such as: A Composite Apps query string URL on the iframe A ...
6
votes
2answers
708 views

Losing StandardSetController selected records with first visit to VF page

I have a VF page that leverages a custom object's StandardSetController to compare records. I created a custom button to allow users to select records of that object from a related list and compare ...
7
votes
2answers
2k views

How do I setup access for a REST resource apex class using session ID

We have a REST resource apex class, and its sole purpose is to eliminate the problem of hitting Salesforce page view limits. The way it is currently setup doesn't seem to be eliminating this issue. ...
4
votes
2answers
4k views

Did the session id value disappear from the workbench?

I remember that the session information menu option used to display a session id value in the workbench? Is that no longer visible? I can still get this by executing this line of code in the Apex ...
4
votes
1answer
480 views

forcetk proxy gets a 302 in session timeout

I am using the forcetk proxy so that I can send AJAX requests and not have to worry about the cross domain restrictions. The sequence is: I am on page in myapp. myapp.na9.visual.force.com/apex/...
3
votes
1answer
3k views

Call Login() to get a SessionID via sforce.connection.login()

In order to obtain a SessionID with maximal privileges I try to call login() via the API. I need that in order to ExecuteAnonymous with verbose Debug Log - see this post for Backgrounds: Get a FIRST-...
2
votes
0answers
151 views

Accessing Salesforce session via oAuth maintains session across browsers

I am using oAuth 2.0 Web server flow to connect to Salesforce org and get the Access token and refresh token. I use the following URL to access a visualforce page that resides within the Salesforce ...
2
votes
2answers
280 views

Is there any session objects in salesforce ?

What i want to do is simply allow some users (non salesforce users) to view some specific records , so i have created for each user an email and a password for authentification purposes and once ...
2
votes
3answers
5k views

Session timeouts

I am trying to test session timeouts. I note that the minimum timeout setting is 15 minutes. Is there any way to get this lower? Also, if I have a dev session open with eclipse and hit save on a ...
0
votes
1answer
66 views

Querying AuthSession with IsCurrent = TRUE only shows my user [duplicate]

While we may not be leading the pack in Salesforce adoption, I'm quite sure that a number of our 400 users are still logged in as If I look at session management in setup, there are plenty of UI ...