Search found 6 matches
- Wed Mar 08, 2006 6:18 am
- Forum: PHP - Code
- Topic: Session not registering
- Replies: 6
- Views: 292
- Tue Mar 07, 2006 10:08 pm
- Forum: PHP - Code
- Topic: Session not registering
- Replies: 6
- Views: 292
Where should I put it?
So I get rid of the session_register('adminuser'); and add the session_write_close();
because that didn't work
So I get rid of the session_register('adminuser'); and add the session_write_close();
Code: Select all
// User Confirmed, register session and redirect
$_SESSION['adminuser'] = $adminuser;
session_write_close();
header('Location: index.php');- Tue Mar 07, 2006 4:26 pm
- Forum: PHP - Code
- Topic: Session not registering
- Replies: 6
- Views: 292
- Tue Mar 07, 2006 4:14 pm
- Forum: PHP - Code
- Topic: Outside variable to work with include function
- Replies: 2
- Views: 317
- Tue Mar 07, 2006 4:08 pm
- Forum: PHP - Code
- Topic: Session not registering
- Replies: 6
- Views: 292
Session not registering
I have no idea why this isnt working I have a login system for my website, and I have it so if ($_GET['id'] == "login") { if (isset($_SESSION['adminuser'])) { echo "You are already logged in!"; } else { // Check Supplied User/Pass $login_user = $_POST['login_user']; $login_pass =...
- Tue Mar 07, 2006 3:53 pm
- Forum: PHP - Code
- Topic: Outside variable to work with include function
- Replies: 2
- Views: 317
Outside variable to work with include function
The way I have my index.php file start is: <?php $pagename = "Home"; require_once("include/common.inc.php"); page_header(); ?> common.inc.php includes all of my includes and classes, such as page.inc.php : <?php session_start(); // Start Header function page_header() { ?> <?php e...