Jump to content
KonradP

Login Question

Recommended Posts

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

Edited by KonradP

Share this post


Link to post
Share on other sites
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
 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×