hello
I have this code in a function
$_SESSION['id'] = $id;
$_SESSION['pineapple'] = $hashbrown;
$_SESSION['username'] = $username;
However, the session data never gets set, even on the initial page. Can sessions be edited though a function or not?
info on cookies/ect
this is the code for starting the session
<!-- a bunch of info about versions and build goals ect -->
<?php include "loader.php";?>
<!--some more comments -->
loader.php
<?php
// Load Core functions and initalise enviroment
session_start();
include "../music/php/logic/core.php";
include "../music/php/logic/secure.php";
include "../music/php/logic/forms.php";
openDatabase ($set_host, $set_username, $set_password, $set_database);
$core = getCoreSettings ($set_prefix);
and so on...
loader.php initalises everything and includes the right page script.
I don't set any cookies explicitly, and this is what print_r($_COOKIE); produces:
[SQLiteManager_currentLangue] => 2