kingpinzs Posted May 4, 2013 Share Posted May 4, 2013 I hooked to the header but I get to many redirects is there a safe way to check if customer is logged into the storefront? I am trying to use CAS to login and override the prestashop login but so far no luck. this is what I tried so far public function hookHeader( $params ) { // if loged in from another site but not on this site check go set up this sites logged in // if logged into this site from this sit do the same thing // if logged out and try top get to this site check the cas server then destory the cookie if ($_SERVER["REQUEST_URI"] != "/index.php?controller=authentication&back=my-account" and empty($_SESSION['email_address'])) { header('Location: index.php?controller=authentication&back=my-account'); } } Link to comment Share on other sites More sharing options...
vekia Posted May 4, 2013 Share Posted May 4, 2013 What you mean by: I am trying to use CAS sorry but i don't undestand this You created own module? Or you editing some of them? regards Link to comment Share on other sites More sharing options...
kingpinzs Posted May 4, 2013 Author Share Posted May 4, 2013 What you mean by: sorry but i don't undestand this You created own module? Or you editing some of them? regards I am using this https://wiki.jasig.org/display/CASC/phpCAS. I created my own script to use the php cas client and I am running that script on every page Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now