Jump to content

Cookies admin to frontoffice


luizkim

Recommended Posts

Hi,

 

I´m try get cookies from admin to use in frontoffice page, but my code not work.

 

This a example:

 

 


$cookie = new Cookie('psAdmin');
if ($cookie->id_employee) {
   echo 1;
} else {
   echo 0;
}

 

 

The code not work in frontoffice page, but in admin page it´s fine.

Link to comment
Share on other sites

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...