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
0answers
444 views

Weird visual force page issue on force.com site

We have a force.com site which has a 50 step form. I login as portal user in say the first tab of the browser and let us say i am at page5. Now i create a new tab in chrome and go to the home page and ...
10
votes
1answer
2k views

Create a custom session time out alert page

We have a force.com site and have a 50 step multi wizard. We want to mimic the current salesforce session time out alert where a popup would be displayed to an user if the user is idle and logged in ...
10
votes
1answer
16k 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. ...
3
votes
1answer
427 views

Handling network failure on AJAX requests

I need to be able to handle network failure on AJAX requests. For example, a user looses their wifi connection. What I could do is put a timeout on all AJAX requests and assume that if they ...
2
votes
0answers
209 views

Changing session timeout behaviour?

In force.com session timeout are handled by server sending a redirect and setting the location header to a page in force domain. This will cause a re-challenge and re-authentiation. Is it possible to ...
4
votes
1answer
465 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/...
1
vote
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 ...
2
votes
1answer
429 views

Handling session timeouts from AJAX requests

I need to able to handle session timeouts nicely from ajax requests. So the user's session has timeout and they should get redirected to the userlogin page if they submit an ajax request. I just ...
0
votes
0answers
2k views

Invalid Session ID error appearing randomly

I am using the PHP partner API for salesforce and am coming across a rather odd issue randomly. Here is the error message I am getting: Fatal error: Uncaught SoapFault exception: [sf:...
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 ...
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 ...
2
votes
3answers
2k views

Logout a user automatically when the browser window is closed

I have a basic question about Salesforce session: How can I logout my users automatically when they close the browser window?
4
votes
2answers
4k views

Determine from Apex whether a user's session is invalid

Can anyone think of a way, from within Apex, to tell if a User's session has expired / been invalidated? Our app is very JS Remoting intensive, so it would be nice if we were able to detect, from ...