Hey folks,
I was hoping someone could help me out with following problem:
I want to use vSigup (available free at www.beanbug.net/vScripts.php) to manage protected pages.
Well, that all works fine, however, I'd like to include a conditional clause on public pages where either a loginform is displayed or a Welcome user statement. The script works with cookies rather than a session, so I tried to check the cookie without succes
What I did was:
[PHP]If (isset($COOKIE['USERNAME'])&&(isset$COOKI E['PASSWORD'])) {
$USERNAME = $_COOKIE['USERNAME'];
$PASSWORD = $_COOKIE['PASSWORD'];
$CheckSecurity = new auth();
$check = $CheckSecurity->page_check($US ERNAME, $PASSWORD);
}
else
{
$check = false;
}
if ($check == false)
{<!-- Print the login script -->}
else { print "Welcome $USERNAME;}
[/PHP]
I redirected the resultpage of the loginprocess to the index page where the loginform is. When I login I wont get the Welcome message but again the loginform.
So, does anyone have experience with vSignup and might be able to give me a clue how I can realize above mentioned issue.
Kind regards
Frank
I was hoping someone could help me out with following problem:
I want to use vSigup (available free at www.beanbug.net/vScripts.php) to manage protected pages.
Well, that all works fine, however, I'd like to include a conditional clause on public pages where either a loginform is displayed or a Welcome user statement. The script works with cookies rather than a session, so I tried to check the cookie without succes
What I did was:
[PHP]If (isset($COOKIE['USERNAME'])&&(isset$COOKI E['PASSWORD'])) {
$USERNAME = $_COOKIE['USERNAME'];
$PASSWORD = $_COOKIE['PASSWORD'];
$CheckSecurity = new auth();
$check = $CheckSecurity->page_check($US ERNAME, $PASSWORD);
}
else
{
$check = false;
}
if ($check == false)
{<!-- Print the login script -->}
else { print "Welcome $USERNAME;}
[/PHP]
I redirected the resultpage of the loginprocess to the index page where the loginform is. When I login I wont get the Welcome message but again the loginform.
So, does anyone have experience with vSignup and might be able to give me a clue how I can realize above mentioned issue.
Kind regards
Frank
Comment