I cannot stay Adminintration page ! ver2.2

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 years ago
Adding a machineKey fixes the problem of being logged out every 30 seconds or so. This is because the machineKey is required for forms authentication. I'm running nopCommerce 2.65.

First, you need to generate a machineKey. Got to http://aspnetresources.com/tools/machineKey
and generate the machineKey online. The generator will give you the code that you need to insert into web.config in your Nop.Web app.

The generated code will look something like this (by the way, don't copy and paste from here, generate your own code!):

<machineKey validationKey="D9A123CFA99A739E6397B6F15602C5C3BA32B7B30CCF259908CA8BCD955820F80B40920A217883994C62F687ACDC1668D23D47F2361BACF07A33EAD5C23B9257" decryptionKey="D788111905A577E2D8B1BB79E0BB969F3FD74AA025447949FDC95FF153712504" validation="SHA1" decryption="AES" />

Once you have the code like above, insert it inside your <system.web></system.web> tags in web.config. I put it right after the </authentication> tag like so:

<authentication mode="Forms">
  <forms name="NOPCOMMERCE.AUTH" loginUrl="~/login" protection="All" timeout="43200" path="/" requireSSL="false" slidingExpiration="true" />
</authentication>
<machineKey validationKey="D9A123CFA99A739E6397B6F15602C5C3BA32B7B30CCF259908CA8BCD955820F80B40920A217883994C62F687ACDC1668D23D47F2361BACF07A33EAD5C23B9257" decryptionKey="D788111905A577E2D8B1BB79E0BB969F3FD74AA025447949FDC95FF153712504" validation="SHA1" decryption="AES" />

That's all there is to it. No more being logged out, well, until the timeout in <authentication> occurs.
11 years ago
ckhawand wrote:
The same happened to me on Nopcommerce 2.6 I am trying the suggested fix it seems to be working.

I suggest to mention this configuration in the Nopcommerce installation guide.


I made a short memo pdf for this problem as follows.


http://www.digipub-net.com/download/nopCommerce/Pdf/NopMachineKey04.pdf
11 years ago
I have set the machinekey as follows

    <machineKey validationKey='0126BB6ACDA6580A93A9FFD724F5D502554D41D50845360CC52DC31B1BE42BEC6521A99906D67259FA6801AF5E38192F59A42563A2639C5CA7BB49E57CBC3408'   decryptionKey='B1E38D56AF2D5A171D429B43171B2BF35AEB0AE0FDE755B2'   validation='SHA1'/>

but it still keeps me redirecting to login page even if I am logged in , no matter what page I go to.

Can you help me with this?

Thanks.
11 years ago
THANK YOU! THANK YOU! THANK YOU!  Not only do I not bomb out and go back to the log in page, but I notice the admin menu is dramatically faster to navigate.
10 years ago
Thanks a lot :)

My issue was solved by adding machineKey !!!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.