View Single Post
Old 01-15-2007, 02:06 PM   #20 (permalink)
Babbage
 
Newb Techie

Join Date: Dec 2004

Posts: 45

Babbage

Default

Glad to hear you were able to figure it out tommyboy123x!

Yeah, usually when I have to use sessions, I put the following in file (something like sessions.php), and just include that in all my files before anything else:

PHP Code:
<?php
  
/************************************
   *          Header Stuff            *
   ************************************/
     // This _must_ to be sent BEFORE any HTML
     
session_start();
     
header("Cache-control: private"); // IE 6 Fix.
?>

Quote:
EDIT: also, there is no way [that i know of] to get session variables in an included file. You can do this by just changing it to a normal variable though which is what i did
Did you try storing your information in the $_SESSION[" "] variable? This usually can store session specific information, and as long as you start the session you should be able to access them.
Babbage is offline