Search found 6 matches

by r22pl
Wed Mar 08, 2006 6:18 am
Forum: PHP - Code
Topic: Session not registering
Replies: 6
Views: 292

Thanks, it fixed the problem :D
by r22pl
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();

Code: Select all

// User Confirmed, register session and redirect
$_SESSION['adminuser'] = $adminuser;
session_write_close();
header('Location: index.php');
because that didn't work
by r22pl
Tue Mar 07, 2006 4:26 pm
Forum: PHP - Code
Topic: Session not registering
Replies: 6
Views: 292

Yeah, I have session_start(); in the beginning of my document. What should I use instead of session_register?
by r22pl
Tue Mar 07, 2006 4:14 pm
Forum: PHP - Code
Topic: Outside variable to work with include function
Replies: 2
Views: 317

Thanks, I passed $pagename to the function and it worked
by r22pl
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 =...
by r22pl
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...