I am on my second day of using BV and I have a 2 questions. 1. Is it possible to have a login script on the index page? My login script file is main_login.php. ( From what I have read the answer is no because of naming the page index.php or index.html)
2. Where would i put the following scripts in terms of putting it on the web page. (which pages?)
Create file login_success.php
// Check if session is not registered , redirect back to main page.
// Put this code in first line of web page.
<?
session_start();
if(!session_is_registered(myusername)){
header("location:main_login.php");
}
?>
<html>
<body>
Login Successful
</body>
</html>
and
Logout.php
If you want to logout, create this file
// Put this code in first line of web page.
<?
session_start();
session_destroy();
?>
Again which web page? Any help would be greatly appreciated.
www.heatmeeting.com
2. Where would i put the following scripts in terms of putting it on the web page. (which pages?)
Create file login_success.php
// Check if session is not registered , redirect back to main page.
// Put this code in first line of web page.
<?
session_start();
if(!session_is_registered(myusername)){
header("location:main_login.php");
}
?>
<html>
<body>
Login Successful
</body>
</html>
and
Logout.php

// Put this code in first line of web page.
<?
session_start();
session_destroy();
?>
Again which web page? Any help would be greatly appreciated.
www.heatmeeting.com
Comment