Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Caractacus Downes 81 posts 314 karma points
    Oct 10, 2016 @ 12:13
    Caractacus Downes
    0

    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

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Oct 10, 2016 @ 15:11
    Rusty Swayne
    0

    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.

  • Caractacus Downes 81 posts 314 karma points
    Oct 11, 2016 @ 08:30
    Caractacus Downes
    0

    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

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Oct 11, 2016 @ 15:27
    Rusty Swayne
    100

    That's correct. Merchello does not directly store anything in the .NET Session object.

  • Caractacus Downes 81 posts 314 karma points
    Oct 11, 2016 @ 15:33
    Caractacus Downes
    0

    Great, thanks.

    Crac

Please Sign in or register to post replies

Write your reply to:

Draft