I have some custom pages that are only accessible when the user is logged in. I use code like this to determine if a user is logged in:
<mvt:if expr="NOT g.Customer:id">
<mvt:exit />
</mvt:if>
However this doesn't seem to work fully. Let's say I compare a page that I have made "MYCUSTOMPAGE", to a built-in page ACLN (account landing page). Let's say I copy the links below from another user who is logged in on another PC.
https://www.example.com/mm5/merchant...n=MYCUSTOMPAGE
https://www.example.com/mm5/merchant...39&Screen=ACLN
If I paste the first link into my browser, then it successfully opens MYCUSTOMPAGE (which is what I don't want).
If I paste the second link in, it takes me to the log in page (which is what I want). How can I get my custom page to work like the ACLN page? Is it using cookies? (But I tried disabling cookies and it still worked.)
I have toolkit installed.
Note: I have the basket timeouts set to a very long time so users stay logged in.
<mvt:if expr="NOT g.Customer:id">
<mvt:exit />
</mvt:if>
However this doesn't seem to work fully. Let's say I compare a page that I have made "MYCUSTOMPAGE", to a built-in page ACLN (account landing page). Let's say I copy the links below from another user who is logged in on another PC.
https://www.example.com/mm5/merchant...n=MYCUSTOMPAGE
https://www.example.com/mm5/merchant...39&Screen=ACLN
If I paste the first link into my browser, then it successfully opens MYCUSTOMPAGE (which is what I don't want).
If I paste the second link in, it takes me to the log in page (which is what I want). How can I get my custom page to work like the ACLN page? Is it using cookies? (But I tried disabling cookies and it still worked.)
I have toolkit installed.
Note: I have the basket timeouts set to a very long time so users stay logged in.
Comment