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
cw.ax43cw.ax43 

Re-using session across WIL invocations

Hello,

We are using WILs to integrate with a hosted product.  Every WIL invocation to our site winds up starting a new http session on our side, which is not desirable since we want to maintain some information across WIL invocations.  Is there a way to allow a WIL invocation to pick up an existing http session on our site?  If this is not possible we would have to store the information using salesforce session id as the key in a mechanism separate from the http session.

Regards,

Len Takeuchi

Salescentrix.com

DevAngelDevAngel

Hi cw,

I can only think of a hack that MIGHT work.

Create a custom field on the objects that have the wil.  When a wil is first clicked and a session id is present, you can generate an id on the server to save in the session context.  Pump that id back to the custom field and include that custom field in the wil merge fields.  In essence, you want to maintain a cookie-less session, but need to save the valid session cookie in salesforce.com and send it with each wil.