• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 183
  • Last Modified:

cant creat new php scripts

somethign very wierd has happend...

if i enter any php code using my sessions or anything such as

<?php
require_once 'settings.php';
echo $_SESSION['user_id'];
?>
it displays nothing.. but if i open one of my old page and enter the code it displays my id :S  i really dont understand it
0
runnerjp
Asked:
runnerjp
1 Solution
 
Roger BaklundCommented:
Remember to execute session_start() before reading session variables.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now