Hello together,
today I got the idea to create a few PHP Applications on our VA Website, and I would like use the login system of the phpvms. That means, that I would like make a Query to look if the User is logged in or not. Has anyone an idea, how to create this function in PHP with Sessions, Cookies or something else?
Greetings,
Konrad
On 5/26/2018 at 9:03 PM, KonradP said:
Hello together,
today I got the idea to create a few PHP Applications on our VA Website, and I would like use the login system of the phpvms. That means, that I would like make a Query to look if the User is logged in or not. Has anyone an idea, how to create this function in PHP with Sessions, Cookies or something else?
Greetings,
Konrad
Hey!
I know how to do this, I infact created a webmail application for one of my clients which used this tech. Session’s would be better than cookies, but Since the Codon.config.php already has a session_start(); tag, It would throw a warning every time someone tries to login to your application.
Contact me on PM, I might be free for the next few days to help you out.
Regards
This is what I regularly use:
include\_once '../core/codon.config.php'; if(Auth::LoggedIn()) { echo 'You are logged in'; } else { echo 'You are not logged in'l }
Of course, you will have to update the include_once line in order to point to the path of your phpVMS core/codon.config.php according to the current directory of your web application.