I have on my website:
index.php
members/login.php
members/redirect.php
What i am trying to do is i have login point to redirect passing the login info from login.php. in redirect.php I want it to set all of the session variables that i will need everywhere else in the site, however, using:
On members/redirect.php
session_start();
$_SESSION['id'] = 1;
header("location: ../index.php");
On index.php
session_start();
print $_SESSION['id'];
Output not a thing..
Any help is greatly appreciated.
Thanks
~Matt