Does Umbraco have a unique Session value when the browser is open?
I am building a custom shopping cart and I was going to store a unique identifier in Session and also in my database for future use?
I know I can use Session["CartId"], but does Umbraco have something else I can use and does it have something I can put in Session["CartId"]. I was just going to set this to a new Guid at first, but I noticed Umbraco creates some upfrt value when using @Html.BeginUmbracoForm.
Is this something I can use to uniquely identify shopping carts while the browser is open? If I want to store it in the database, what datatype is recommended?
Does Umbraco have a unique Session value when the browser is open?
I am building a custom shopping cart and I was going to store a
unique identifier
inSession
and also in my database for future use?I know I can use
Session["CartId"]
, but doesUmbraco
have something else I can use and does it have something I can put inSession["CartId"]
. I was just going to set this to a newGuid
at first, but I noticedUmbraco
creates someupfrt
value when using@Html.BeginUmbracoForm
.Is this something I can use to uniquely identify shopping carts while the browser is open? If I want to store it in the database, what datatype is recommended?
Thanks
I think what you're looking for is:
However, storing as a Guid is another issue as I was also looking at this - http://stackoverflow.com/questions/29693492/current-sessionid-convert-to-guid
is working on a reply...