+ 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