function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Siddharth Birari.ax1164Siddharth Birari.ax1164 

NOT GETTING UNIQUE SESSION ID

Hi,

I have one custom development in place where navigation happens within multiple visualforce pages (Each visualforce page has their respective custom controllers devloped).

In each of the controller I need to identify the current user's session id.
Ideally I should be returned with the same session id on all the visualforce pages, however I get separete session ids on all the pages.

I am making use of UserInfor.getSessionId() standard method.

I need to know why system provides separate session id on separate pages whereas the current logged in user is the same.

Thanks in advance.
Siddharth Birari
PratikPratik (Salesforce Developers) 
Hi Siddharth,

Please go through below links:

http://salesforce.stackexchange.com/questions/23277/different-session-ids-in-different-contexts
http://stackoverflow.com/questions/24449782/session-id-issue-different-id-for-vf-and-developer-console

Thanks,
Pratik