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
lescclarkcpdlescclarkcpd 

Session IDs

Hi

 

We are using session IDs to track items that a public guest user adds to a cart, am i right in saying that if there are 2 users, on 2 different machines, in the same location that they will have the same session ID.  It certainly seems that way.

 

thanks

les

ForcepowerForcepower
Les,
Do they appear to come from the same IP address (probably thu' a proxy server)? I believe each browser instance on the separate machines should still get a separate session id. Are you seeing that the two carts are getting mixed up?
Ram
lescclarkcpdlescclarkcpd

yes, they have the same session ids & yes the carts get mixed up!

ForcepowerForcepower

Les,

 

You may want to check if caching is turned off for your VF page.

 

Ram

ForcepowerForcepower

One other thing you can investigate - use cookies to store the current state of your shopping cart. Again make sure caching is turned off.

 

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_sites_cookie.htm

 

Ram

lescclarkcpdlescclarkcpd

caching was off as far as I can tell, i had a problem with very slow refreshing of pages so have set to true and 3secs (see http://boards.developerforce.com/t5/Force-com-Sites-Site-com/Sites-slow-response-time/m-p/612011#M7655)

ForcepowerForcepower

ok - so caching means your pages stay around for at least a few minutes (10?) and you run into issues with multiple browsers getting the same session etc.

 

http://www.tehnrd.com/serious-force-com-cookie-issue/