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
1
vote
1answer
131 views

How to create a session in salesforce

How to create or set a session in sales force.I am not using site.login for logging.I am manually checking username and password(Custom Field) and once checked.I have to create a session when ...
1
vote
0answers
96 views

Can you log out a user from multiple domains ? (expire all sessions)

Our customer portal is available in multiple languages, all of them have their own domain and allow the user to switch languages. Currently, when a user logs out, we take the user to https://company....
4
votes
1answer
723 views

Bulk API Session ID

I have a trigger on a custom object which on certain conditions call a future method. The future method calls a Salesforce REST function. This rest function calls a PDF VF page, stores the body as an ...
1
vote
0answers
187 views

Customize Salesforce session timeout popup page

Is it possible to customize salesforce session timeout page to include time remaining to continue session and add a logo by nullifying the salesforce default logo. I have searched on this topic but ...
3
votes
1answer
547 views

Session settings - timeout

I set the session expiration timeout for my org to 8 hours in sandbox. However, the session continues expiring at 15 minutes. Can anyone let me know, whether I need to change another setting. Thanks....
1
vote
1answer
841 views

Can the marketing cloud login session be used for landing pages?

I'm looking to create a landing page that allows Marketing Cloud users to check various data sources (data views, data extensions, etc.) for a specific subscriber. I understand how to do all this, but ...
0
votes
1answer
2k views

Session Timeout Not Redirecting to Login Page on Expiration

I am having some issues with Session Timeouts not redirecting Community users to the login page as defined in the session setting. According to Salesforce definition of the setting, it is to expire ...
0
votes
1answer
287 views

Session in service cloud console

We are using Salesforce Console Integration Toolkit in service cloud console and currently have issues with multiple tabs opening up in production .The tabs opened in previous session are retained ...
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 ...
1
vote
0answers
857 views

Can an API user be set inactive automatically? API returned “cannot reparent record” for active user

I have a web application that uses the Salesforce API to create Contact, Account, Opportunity records. We set up an administrator user with full permissions to use as the Oauth login user, and I use ...
1
vote
1answer
771 views

Storing session/cookie in VF pages

I have a product details page which displays 1 product, there's an Add to Cart button for user to click. When user click on Add to Cart, the cart will be displayed at the bottom on the same page. I'...
0
votes
1answer
191 views

Error when getting Sesssion Id for community user using SOAP UI

When iam getting Session Id for customer Community user through Soap UI, getting the following error. "SERVER_UNAVAILABLE: internal server error (20228)" Can any one tell me where is the problem ...
1
vote
0answers
449 views

Community New user set password issue

I create a new user through postman with required inputs(Username, Password, sample1 etc...), once user registered successfully then i need to get a user session through SOAP UI probably am getting ...
2
votes
1answer
114 views

Maintaining session using web server oauth

I am using canvas app and have java code at backend. We are integrating using web server oauth. I am using my java code to retrieve access token first time now i need to maintain the session , how ...
2
votes
3answers
677 views

OAuth JWT returns the same session ID on multiple requests

I am trying to connect to Salesforce from an external server and I am doing this via the OAuth 2.0 JWT flow to gain authorization into Salesforce. I construct the JWT token from the external server ...
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 ...
3
votes
1answer
129 views

Create a Class that I can access from my trigger to login as another user

I need to be able to impersonate another user from my Trigger, and thinking that I could create a class that logins as another user using the REST API and then post messages from that class. How ...
2
votes
0answers
146 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 ...
13
votes
2answers
2k views

Any workaround for the bug with StandardSetController getSelected method?

I'm using a VF page and a controller to get the selected records in a view list and display some info. However the first time always fails (Related question), is there a different way to do this or a ...
0
votes
1answer
938 views

Connected Apps Session expire

We are developing a managed package which includes connected app (ios native). In our subscribers org, under connected apps we can see our connected app. There is an option "Refresh token is valid ...
3
votes
1answer
531 views

how to insure that after inactivity of 15 min in userpage will goes for logout with a popup message in salesforce?

Can anyone tell me to ensure that after 15 minutes of inactivity our customer portal logs out the user and prompts them to log back in after inactivity?
6
votes
2answers
656 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 ...
1
vote
0answers
73 views

Getting sessionId while scheduling job

I am scheduling a job in which i need to pass session Id. How can i get session id of user at that point. system.schedule('Test process 10 past', '0 10 * * * ?', new TestSchedule(UserInfo....
2
votes
2answers
1k views

Does a session object exist?

Does a session object exist in SalesForce ? I mean an object that I can initialize when user logs in and would be available in all pages until he logs out. I want to avoid several database requests ...
1
vote
1answer
1k views

Get SFDC sessionID via access token

As the title. I'm using username/password flow to request an access token. So how can I request a SFDC sessionID from that token?
4
votes
1answer
2k views

Composite App integration and “Lock sessions to the IP address from which they originated”

I have an older Composite App that uses a Web Tab for integration. It is essentially an iframe that passes the current Session ID and Server URL to an external web application in the query string. The ...
2
votes
2answers
1k views

How to use JavaScript to detect if a user has a valid Salesforce session

I have a VisualForce page that it is possible to use offline because I am caching the page and other resources in the application cache. I have a button on that page that will execute a Visualforce ...
2
votes
0answers
603 views

Calculate Session duration / length

Salesforce provides login history, but not log-out history or session timeout history... This has me stumped on how to calculate user session length! Is there a way to calculate when the user logged ...
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-...
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 ...
1
vote
0answers
359 views

Is there a way to set the URL of the session timeout redirect?

I am playing around building a hybrid app that wraps the Salesforce1 UI in the Mobile SDK. It's a local app in that the first page of my app is a splash page that runs locally in iOS -- localhost[...
1
vote
1answer
1k views

Native salesforce ios session timeout

I have a few questions. I'm building native ios app that can talk with salesforce and I used sdk and samples from here what is time value of our session in mobile app to be logged out ??(when user ...
5
votes
1answer
2k views

Passing Session Id using URL instead of HTTP headers

When invoking the Tooling API, is there a way to pass the Session Id using just URL parameters? I've seen a couple of Salesforce APIs that work when the Session Id is contained in a URL parameter: ...
3
votes
1answer
438 views

How to open canvas app as a popup from VF page?

I am facing the below issue on opening a canvas app as a pop up from VF page. There was an error rendering Force.com Canvas application . Your browsing session has ended or is invalid. Please re-...
3
votes
3answers
2k views

How do I retrieve the server and session id from the Salesforce iOS API?

I'm currently trying to hack in some functionality to download attachment data for an iOS Salesforce application. I'm going to do that using a direct HTTP request, but for that to work I need to pull ...
5
votes
1answer
476 views

Is there a way to load an internal Salesforce page from a scheduled batch?

My end goal is to be able to send license usage as well as data/file storage usage from clients to our org. As these values don't appear to be available directly via any API calls, I had to resort to ...
2
votes
2answers
1k 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,...
1
vote
0answers
2k views

How to create a costume login page using session

I am working on Login page "costume VF page" that will check the username and password in "User" standard object. Is there anyway provided by salesforce to check the username and password then ...
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. ...
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 ...
4
votes
1answer
600 views

How to get session id in trigger without using UserInfo class?

I have to create PDF file in trigger upon user approval through email. Since Getcontent() method is not allowed in trigger, I am using weservice to create PDF. As user is approving through email only,...
3
votes
1answer
585 views

Is it possible to set the Session Timeout value to anything other than the pre-defined values?

This may be a duplicate of this question but I will ask anyway. I've a client that wants their Session Timeout Value set to 90 minutes. Is it possible to set the timeout to anything other than the ...
3
votes
3answers
447 views

Salesforce logout hook

Is there any way I can know when a Salesforce user logs out of the website? I'm providing a service that will probably reside in an iFrame displayed on SF pages and need to know when to do some ...
25
votes
2answers
15k 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 ...
9
votes
1answer
6k views

Getting UserInfo.getSessionId in Visualforce page without controller

is it possible to retrieve sessionid of a user from a visualforce page without using any custom controller?
5
votes
1answer
172 views

Any workaround to session timeout in high volume portal?

Has anyone found a workaround to this problem: Sites Session Expired page should show the login page: https://success.salesforce.com/ideaView?id=08730000000XriwAAC# It seems that it was reported 2 ...
2
votes
1answer
2k views

Prevent session timeout when page uses rerender elements exclusively?

When an org has a session timeout value set and the user is interacting with a Visualforce page where the only postback action that the page performs occurs using rerenders, the session will ...
2
votes
2answers
97 views

How to sync records at start of session only?

I'm working on a Salesforce/Quickbooks integration for a Force.com application. I need for the app to autosync during the user's initial login to the customer portal. Throughout the session, the sync ...
2
votes
1answer
4k views

How to get the Session Token of a Standard User

I would like to simulate some web service calls, for which I need the Session Token. With an Admin user, I can simply click on the Developer Console and get UserInfo.getSessionId(). However, with a ...
2
votes
1answer
22k views

how to get sessionID in html area component

How can i get the sessionID in the html area component , in the sidebar , using javascript without referring to the connection.js , Is this possible