I imagine this is a straightforward question, but I thought I'd ask as I can't seem to find a straight answer in the existing documentation / forum.
I've recently been forced to move the site I'm working on to a cloud hosting environment. The main part of the site is working fine, but the shopping cart and back office are doing some odd things (chopping cart errors which I don't seem to be able to recreate, back office logging me out every other click, that kind of thing). It seems likely that this is to do with machine keys and possibly SessionState. This article:
It's an encrypted cookie that uses the EncryptByMachine extension. If you add the machine key to the web.config that should correct that issue - BUT it also uses run time caching and at the moment does not have a cache refresher like Umbraco utilizes.
SO if the load balancing is configuration is some sort of round robin config there may be issues with the cache not clearing correctly. It should be fine if the load balancer tracks each session to the same server.
CacheRefreshers are something on our radar - we've just not gotten to them yet.
OK, so I think what I take from that is that I need to add a machine key to the web.config (which I think will mean I need to reset all the passwords?) but I don't need to move to using SQL Server to store the Session State as Merchello wouldn't use it anyway, at least at the moment.
Is that right?
(Thanks for your help as always. I've got another question, but I don't think it's related to this so I'll start a new thread.)
Does Merchello use SessionState?
Hi,
I imagine this is a straightforward question, but I thought I'd ask as I can't seem to find a straight answer in the existing documentation / forum.
I've recently been forced to move the site I'm working on to a cloud hosting environment. The main part of the site is working fine, but the shopping cart and back office are doing some odd things (chopping cart errors which I don't seem to be able to recreate, back office logging me out every other click, that kind of thing). It seems likely that this is to do with machine keys and possibly SessionState. This article:
Umbraco in Load Balanced Environments
has what look like some helpful pointers.
However it also has a bit about configuring a SqlSessionStateStore provider - 'If you use SessionState in your application' ...
I guess that Merchello does, but if it doesn't then that's a whole struggle with the hosting provider I don't have to negotiate.
So, does Merchello use SessionState, and therefore do I have to get my hosting provider to configire the database to support it for me?
Thanks fr your help.
Cheers,
Crac
It's an encrypted cookie that uses the EncryptByMachine extension. If you add the machine key to the web.config that should correct that issue - BUT it also uses run time caching and at the moment does not have a cache refresher like Umbraco utilizes.
SO if the load balancing is configuration is some sort of round robin config there may be issues with the cache not clearing correctly. It should be fine if the load balancer tracks each session to the same server.
CacheRefreshers are something on our radar - we've just not gotten to them yet.
OK, so I think what I take from that is that I need to add a machine key to the web.config (which I think will mean I need to reset all the passwords?) but I don't need to move to using SQL Server to store the Session State as Merchello wouldn't use it anyway, at least at the moment.
Is that right?
(Thanks for your help as always. I've got another question, but I don't think it's related to this so I'll start a new thread.)
Cheers,
Crac
That's correct. Merchello does not directly store anything in the .NET Session object.
Great, thanks.
Crac
is working on a reply...