Hello..
I scripted a login system using a class i found (http://bubble.ro/Creating_a_customized_session_handling_system_in_PHP__part_II.html)
Everything was working fine until i started using mod rewrite. (using sql session injection removes the phpsesid=123 out of the url)
Anyways, when i get to the members area it via main.php?id=pagename the class works fine, however when i go via melgurt.com./pagename/ it says im logged out. I think it has something to do with the mod_rewrite.
Output buffering is turned on it the server..
main.php
----------
h.php = header file
f23php = footer file
I scripted a login system using a class i found (http://bubble.ro/Creating_a_customized_session_handling_system_in_PHP__part_II.html)
Everything was working fine until i started using mod rewrite. (using sql session injection removes the phpsesid=123 out of the url)
Anyways, when i get to the members area it via main.php?id=pagename the class works fine, however when i go via melgurt.com./pagename/ it says im logged out. I think it has something to do with the mod_rewrite.
Output buffering is turned on it the server..
main.php
----------
PHP:
<?php
require ("testing/iSQL.php");
include ("testing/iSession.php");
global $sql; $sql = new iSQL();
$session = new iSession();
$logged_in = $session->get_var("logged_in");
$un = $session->get_var("user_id");
if($logged_in=="1"){
$sin="1";
}
else{
$sin="0";
}
$session->session_end();
include("..h23.php"); //modified for security
$filename = $_GET['id'];
$function1 = $_GET['id2'];
$function2 = $_GET['id3'];
$function3 = $_GET['id4'];
if (file_exists("---")) { //removed for security
include("---"); //removed for security
} else {
include("--"); //removed for security
}
include("....f23php"); //modified for security
?>
h.php = header file
f23php = footer file
Last edited:





