You are not logged in.
Hello,
I am facing the following issues and seek your support.
1) I get the below error when a new user tries to sign up. I tried creating a new member through the admin panel, and that works. Member creation is enabled in admin panel
2) I created a divert after login to a user page and divert works fine. How can I add a logout option in the page?
3) How can I make the page to which user gets diverted, not accessible directly? Now it is accessible using the direct link even when the user is not logged in.
Thanks!!
Last edited by intelligadgets (28-06-2020 08:34:03)
1. Is that using the Ajax option?
2. Assuming the redirect is on the same domain, you can carry the session over via ‘session_start()’. Then create a logout button to kill the session.
Psuedo code:
<?php
session_start();
if (logout button clicked) {
session_unset();
session_destroy();
}
?>3. You’ll need to see if there are any solutions online. Something like LinkShield might work:
https://www.codester.com/items/10792/linkshield-link-protecting-php-script