Jump to content

[SOLVED] Check if user is logged from CMS page


Recommended Posts

  • 1 month later...

o,K, One possible solution is... on the CMS page we redirect to a php page were we check if the user is logged, for example:

 

On the CMS page:

 

<script type="text/javascript" language="javascript">// <![CDATA[

location.replace("modules/module_name/page.php")

// ]]></script>

 

On the php page:

 

if (!$cookie->isLogged(true))Tools::redirect('authentication.php?back=order.php');

 

So if the customer isnt logged is redirected to authentication page.

 

Best regards

  • Like 1
Link to comment
Share on other sites

  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...