My question here is how can I sucessfully handle a session across pages when some of my pages are .js included files on a static html page?
Here is my real example:
uilogin.php <- login page
getAuth.php <- page to validate a users session
secured.php <- example secure page
A user attempts to access the "secured.php" page and that page will do an include to the "getAuth.php" page. If no valid session var's are defined, which the clip of code below does:
<---- if(!isset($SESSION['uid']) && !isset($SESSION['passwd'])) ---->
then the user will be taken back to the "uilogin.php" page. If they are found then the secured.php page will print.
This works out all good HOWEVER.
Once a sucessful login is established, each link you click will automatically append the PHPSESSID to the end of the url query string.
The problem is the core of my page is built from htm pages with included .js file for the dynamic menu content. If you click on any of the menu nav links, the PHPSESSID is NOT included?? Anyone know of a way to work around this? I guess I can turn the whole site into .php pages but I'm not sure I want to do this.
THANK YOU!!