Skip to main content

Hey folks,

I am not able to set the session_id manually using the js sdk. Is there any way where i can change the session id.

I use this command to manually set session ID when I’m doing testing… maybe it helps for your use case as well. Replace 123456789 with the session ID you want to use. 

amplitude.getInstance().setSessionId(123456789);

 


Yeah it worked, i was passing the session_id as a string earlier now i passed it as an integer to the setSessionId() method. Thanks for your help @SheenaGreen  


Reply