User authentication in linked pages
Posted: Sun Oct 14, 2007 10:27 pm
Hi, I have a problem with user authentication and I would really appreciate any help on this.
I'm running CMS Made Simple 1.1.4.1, using PHP 5.2.4, and MySQL 5.0.45.
I’ve recently upgraded from CMSMS version 0.13 “Canary” and changed to a new host. I did not have the problem prior to the changes.
I have a link to a page within the same domain which uses a PHP / MySQL database to manage a club membership system. These pages are protected and I have used the CMSMS admin login to perform the user authentication. Each page of this application has this code inserted:
The page starts with the standard Admin login screen and the loads the first page of the application after the user has logged in. I should point out these pages load outside of CMSMS, in a new window and in a frame to maintain the left hand menu.
What now happens is the Admin screen loads into the frame after the user logs in and not the referring page. I assume some variable needs to be passed to the check_login() function but I can’t work out how to do this.
Another option would be to utilise FrontEndUser and CustomContent but this would require a lot of work to write user defined tags containing the many pages of PHP code and then creating new pages within CMSMS. Again I’m not sure how users would be authenticated on each page. Thanks.
I'm running CMS Made Simple 1.1.4.1, using PHP 5.2.4, and MySQL 5.0.45.
I’ve recently upgraded from CMSMS version 0.13 “Canary” and changed to a new host. I did not have the problem prior to the changes.
I have a link to a page within the same domain which uses a PHP / MySQL database to manage a club membership system. These pages are protected and I have used the CMSMS admin login to perform the user authentication. Each page of this application has this code inserted:
The page starts with the standard Admin login screen and the loads the first page of the application after the user has logged in. I should point out these pages load outside of CMSMS, in a new window and in a frame to maintain the left hand menu.
What now happens is the Admin screen loads into the frame after the user logs in and not the referring page. I assume some variable needs to be passed to the check_login() function but I can’t work out how to do this.
Another option would be to utilise FrontEndUser and CustomContent but this would require a lot of work to write user defined tags containing the many pages of PHP code and then creating new pages within CMSMS. Again I’m not sure how users would be authenticated on each page. Thanks.