*

Recent

Author Topic: User template setting  (Read 32521 times)

Frank

  • Sr. Member
  • ****
  • Posts: 257
  • Force: +4/-0
Re: User template setting
« Reply #30 on: February 21, 2013, 06:08:26 AM »
Put this at the top of index.php in a new line after the <?php

Code: [Select]
// Print Cookie vars.
print_r($_COOKIE);

// Print Session vars.

foreach($_SESSION as $key => $value) {
echo 'Current session variable ' . $key . ' is: ' . $value . '<br />';
}
You can't just simply add global user functions to the DB and not include "Their preferences" in SESSIONS or cookies.

It will show you what they have, and then you have to determine what's missing at least in the session, because you don't have cookies.
« Last Edit: February 21, 2013, 06:11:34 AM by Frank »

Dillon

  • Developer
  • Sr. Member
  • ******
  • Posts: 340
  • Force: +3/-0
    • Arcade Freak
Re: User template setting
« Reply #31 on: February 21, 2013, 01:39:26 PM »
Put this at the top of index.php in a new line after the <?php

Code: [Select]
// Print Cookie vars.
print_r($_COOKIE);

// Print Session vars.

foreach($_SESSION as $key => $value) {
echo 'Current session variable ' . $key . ' is: ' . $value . '<br />';
}
You can't just simply add global user functions to the DB and not include "Their preferences" in SESSIONS or cookies.

It will show you what they have, and then you have to determine what's missing at least in the session, because you don't have cookies.

Alright thanks i will look into this when im not so busy.