flappi282
10-28-2009, 06:07 AM
I am making a PHP blog using sessions.
But I have a problem.
This script after correctly logging in causes an error:
<?php
session_start();
ini_set("memory_limit","32M");
if( $_POST['user'] && $_POST['password']){
include "../includes/includes.php";
$result = checkLogin($_POST['user'], $_POST['password']);
if ($result == 1){
$_SESSION['loggedin'] = true;
} else {
$error = "Incorrect Login Information";
die(include "login.php");
}
}
if (!$_SESSION['loggedin']){
die(include "login.php");
} else {
include("newpost.php");
}
?>
This is the error:
Allowed memory size of 33554432 bytes exhausted (tried to allocate 8192 bytes) in /home6/username/public_html/blog/admin/login.php on line 1
What is wrong?
Thanks
But I have a problem.
This script after correctly logging in causes an error:
<?php
session_start();
ini_set("memory_limit","32M");
if( $_POST['user'] && $_POST['password']){
include "../includes/includes.php";
$result = checkLogin($_POST['user'], $_POST['password']);
if ($result == 1){
$_SESSION['loggedin'] = true;
} else {
$error = "Incorrect Login Information";
die(include "login.php");
}
}
if (!$_SESSION['loggedin']){
die(include "login.php");
} else {
include("newpost.php");
}
?>
This is the error:
Allowed memory size of 33554432 bytes exhausted (tried to allocate 8192 bytes) in /home6/username/public_html/blog/admin/login.php on line 1
What is wrong?
Thanks