Hi,
I have two working codes, but for the site im doing at the moment I have to use both of them and its not going well.
I have two sessions (I have seen some people think two sessions is wrong, but im not sure how else to do it) Login and Language
Login:
PHP Code:
<?php include_once("custom_configuration.php"); include_once("auto_login.php"); if ($_GET['action'] == "logout") { setcookie("auto_login","",time()-5000); //Expire the invalid cookie. $_SESSION['user_id'] = ""; $_SESSION['username'] = ""; $_SESSION['user_name'] = ""; } ?>
Language:
PHP Code:
<?php // Require the Session Functions require("includes/functions/session.func.php"); // Call the SessionManagment function from session.func.php SessionManagement(); // Require the Language File require("includes/languages/".$_SESSION['Language'].".lang.php"); // Display a basic HTML page require_once('db_connect.php'); ?>
I have used the login first at it works this way, but then my language does not change and i just dont know what to do....!
Can some one please help!
Rachel
|