We’re rewarding the question askers & reputations are being recalculated! Read more.

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
0
votes
0answers
760 views

How to get the same Session ID when using VisualForce Page to run the Apex Class

I'm getting a different Session ID value when I use my VisualForce Page to run my Apex Class. Before that I been testing my codes using the Developer's Console and I could get my Chart from Salesforce ...
0
votes
2answers
2k views

Getting Session ID in Apex Class

I been trying to get my Session ID Parameters into my Apex class so that I can retrieve a Picture from inside Salesforce and send it out to Facebook. But I'm not sure why I'm not getting my Session ...
4
votes
1answer
3k views

How to test XSS/Content Sniffing protection in sandbox?

I have enabled XSS protection and Content Sniffing protection in sandbox. How can I test these security features in salesforce whether my org is XSS and content sniffing protected? I have enabled ...
0
votes
0answers
112 views

Custom login/registration pages for force.com site

Hello! I am developing a website as an online shop, and I encountered a problem with login and registration. I created portal with Authenticated Website license, which is assigned to site. I enable ...
6
votes
1answer
837 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. ...
1
vote
1answer
435 views

Session Settings

I see these two settings in the session settings and I understand the basic use of it. Lock sessions to the IP address from which they originated Enforce login IP ranges on every request To me, it ...
1
vote
2answers
2k views

Bulk API: using Workbench InvalidSessionId (Unable to find session id)

I'm following this (Bulk Api) Trailhead, I have valid SessionId and when I try to authenticate I'm getting the following error: I have created few records using the same SessionId and I know its a ...
3
votes
1answer
298 views

Angular App deployed on salesforce - login with community user

I have an angular2 app deployed on a salesforce environment(Developers Edition). I am developing a front end UI to call custom apex rest api's using community users (Community Login User). I have ...
4
votes
1answer
501 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 ...
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 ...
1
vote
0answers
110 views

API.Session_ID not invalidated after user has logged out from salesforce

I need some help on understanding the salesforce session behavior. I created a web tab pointing to .NET application which is opened within salesforce in Iframe. I'm passing the API.Session_ID value in ...
1
vote
1answer
42 views

Security Review expectations on Logout Configuration

Our app did not pass Security Review because "The logout function doesn't perform correctly the removal of session data server-side." Our application uses the popular Devise gem (Ruby on Rails) to ...
4
votes
3answers
451 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 ...
1
vote
1answer
136 views

Code Coverage Report Scheduler

I created a scheduled job to run all tests in org at 5:30 AM, and another one at 6:00 AM(to ensure that all test jobs done) to send the code coverage percentage and top 10 uncovered classes in org,...
0
votes
1answer
41 views

SessionID invalid in SOAP API but not affected in UI

I have a session id (taken from an Apex Class) for a single sign on user which expires every 15 minutes of inactivity via SOAP API. But the Salesforce UI, if inactive for 15 minutes does not expire. ...
5
votes
1answer
759 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 ...
1
vote
0answers
27 views

Session is not getting renewed

Some facts about our implementation: There is 10 seconds frequency to access the SFDC web service. We create a singleton session at the start of the app. We implemented the SessionRenewer ...
1
vote
0answers
104 views

Is it possible to login into different communities(multiple domains) from one apex controller?

Is it possible to login into different communities(multiple domains) from one controller? Is it possible to use Site.login() for this or there are different ways to do this? Issue is that SSO doesnt ...
3
votes
0answers
263 views

SSO with multiple domains. How to create Community Sessions for one portal user in salesforce?

There is multiple domains for the communities in the org. User have to be able to have an opportunity to log in into all communities via one. Example : Communities A,B. From external site_X User_1 ...
1
vote
1answer
455 views

Do access token expiration times reset/get updated every time they are used? [duplicate]

I have my access token session set to expire every 24 hours, but if someone uses that token (say through a rest API call) at some point, does it last for another 24 hours or does the session not ...
3
votes
2answers
467 views

How do I write unit test against the AuthSession object?

I have some code which uses the AuthSession to check if a user is logged in and set some auto assignment rules based on that. However, I am not sure how to cover this in my unit test. Is there a way ...
1
vote
3answers
691 views

Bulk API Rejects Seemingly Valid Session ID

I am working with a sandbox account trying to make calls to the Bulk API. This code has worked before but right now I am getting this error back when I attempt to create a new Job. <?xml version="...
5
votes
1answer
3k views

Session expiry in Salesforce - Session timeout value for Connected Apps

I am using OAUth authentication through connected apps. How can I get session timeout value(access token expiry time) as part of response during user authentication. I am expecting "expires_in" ...
2
votes
1answer
604 views

How to create trigger for DatedConversionRate object

We're using multicurrency in our project. DatedConversionRate has been updating every day by external process. The requirenment is to update CurrencyType records with most relevant rates. At the ...
4
votes
2answers
3k 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 ...
1
vote
2answers
953 views

How to disabe API user session timeout?

I have currently developed a Java API client that connect against the Salesforce instance of my company. Using the following tutorial: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/...
3
votes
0answers
425 views

How to retain sessionId within Live Agent

We're implementing a Salesforce LiveAgent chat for our website, and we want the chat to appear in the bottom right corner of the page, not a popup. My question is: is this even possible while ...
2
votes
3answers
4k views

Invalid Session ID found when multiple API clients login using the same account

I am using Salesforce SOAP API through the jar files. We have set the session timeout to 12 hours. I am using one username/password to login in for all the client instances running on different JVMs. ...
1
vote
1answer
192 views

INVALID_SESSION_ID error while trying to save Lead or Contact

We have developed an mobile app for Salesforce with OAuth and using the REST API V34 and released it to the customer. And customer can able to login to salesforce from the app but when he tries to add ...
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 ...
0
votes
1answer
114 views

GetsessionId formula not working in joined report

I have a formula field on Opportunitu using the getsessionid() formula. I added this field to a report. This works fine in a tabular report but not working in a joined report type - the session Id ...
1
vote
2answers
183 views

Salesforce Session ID Invalid right after call

I have been through this for a few days now with no luck. I make a session id authorization, that works, and get my session ID like so: $sf_session = 'https://login.salesforce.com/services/oauth2/...
3
votes
2answers
417 views

session id or oath token, they not interchangeable?

Very new to Salesforce development. I used a connect app to get Oauth security token in a plugin. I am trying to call an Adobe Salesforce web service that needs a session ID. When I run my plugin I ...
1
vote
1answer
109 views

Track Community Session Login Timestamp via Global Header or URL

Lets say User has 3 communities [Community A (A.com), Community B (B.com), Community C (C.com)] with same username. Same Licence. You have given access to community via profile for Community A and ...
1
vote
1answer
458 views

Salesforce SOAP API SessionRenewer implementations

I am handling a large query of a Salesforce object through SOAP API which takes more than the timeout. Frequent error message is INVALID_SESSION_ID. I have used the queries throughout every code and ...
4
votes
0answers
77 views

Multiple sfdc sessions in one http session

Can multiple access_tokens (salesforce sessionId's) be used on a single HTTP connection? Goal is to manage access tokens (fetched via oauth user/password flow on behalf of the end user) on ESB. Then ...
18
votes
2answers
10k 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 ...
2
votes
2answers
187 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 ...
1
vote
0answers
57 views

Session setting expiring for VF

In Sales Force Service Cloud the session is set to expire 15 min. However the session does not expiring after 15 min, and no time-out pop-up screen appears, but directs to the Dashboard when we ...
1
vote
2answers
818 views

Is it possible to set a session time out for a specific user?

My question is simple Is it possible to set a session time out for a specific user in salesforce? Not a profile ,not a permission set but a specific user.. Thanks in advance
2
votes
1answer
388 views

How to poll data without resetting the session clock

I have a scenario where I'd like to poll Salesforce for data via Visualforce Remote Action, but according to this answer, Remote Actions count as activity and cause the session timeout countdown to ...
0
votes
1answer
158 views

Can we use access token or refresh token as a session id for WebService Callout?

there it is mentioned I want to use sessionID for MetadataService call from an org to other org. I have the other org access token and refresh token both. I tried to use access token, but got the ...
1
vote
2answers
1k views

How to create Sessions in salesforce? Does Salesforce allows to make Sessions?

I want to integrate Salesforce with some website from which I want to get some data. According to that website API, we have to create Sessions and then other working. I have searched for sessions in ...
2
votes
1answer
2k views

Login History, User Session and User Activity reports in custom visualforce page leading to chart.js dashboards

I am looking to draw charts/ graphs much like Google Analytics dashboards that answers questions around Salesforce user activity like: Which users are currently logged in our org? Where from? How ...
3
votes
1answer
369 views

Update Remoting Credentials Without Reload

I've got a native iOS app that uses a WKWebView to display a Visualforce page. This page makes extensive use of remoting, and currently I'm trying to determine a strategy to deal with session timeouts:...
1
vote
1answer
2k views

Multiple sessions to call the API

I am writing an integration piece that basically listens for items on a queue and pushes data into SalesForce. Currently for every message I login, perform the import, and logout. Is this going to ...
1
vote
1answer
119 views

Is there a unique session ID for a primary tab in Service Console?

I am trying to implement an account verification module and there are requirements to not verify a customer when they are reopened under the same primary tab (and they have already been verified). I ...
0
votes
2answers
141 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 ...
1
vote
2answers
138 views

Do SOAP API session IDs depend on the IP address of the request?

If I login using a SOAP API I get a session ID, is it possible to use this session ID with other IP address without authentication? Does the sessionID depends on the IP address?