on the pc after login please try to use the dynamic off canvas buttons to redirect to different pages multiple times and you will see the lecturer id being lost.
The header contains a greeting and logged in lecturer name so if its empty it means the id has been lost
a server action with a name of logout_lecturer.php included multiple times on the page and called on page load. You don't want to load the logout action on page load...
I suggest you to fix this issues before continuing debugging your problem.
This was a game changer though still testing it out but sofar the redirects are working and seems like the system doesnt loose the loggedin user Id any more
but there is another problem this popup comes every time a user clicks on a button redirecting them to a page
actually
<script>
// Check if dmxAppConnect is already initialized
if (typeof window.dmxAppConnect === 'undefined') {
// Load dmxAppConnect only if not already loaded
document.write('<script src="../../dmxAppConnect/dmxAppConnect.js"><\/script>');
}
</script>
You only need the include that you already have on your page:
WOW This is GREEEEAAAAAATTTT !!!
Thanks so much!!!
Teodor and Every One for the Help and Guidance
So far every thing works as expected! Let me keep improving and learning