For Programmers: Free Programming Magazines  


Home > Archive > PHP on Windows > May 2004 > Session troubles









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Session troubles
Ron Herhuth

2004-05-17, 11:35 am


For some reason I am not able to get sessions to work.
This is the code I have entered on the first page:

session_start();
$row['id']=545;

$_SESSION['individual_id'] = $row['id'];
header("location:dataFilterExpander.php");



On page two this is the code I'm using:

session_start();

if(empty($_SESSION['individual_id']))
{
header("location:dataLogin.php?status=nosession");
}


On the second page I get the error:
Notice: Undefined index: individual_id in...

I have the appropriate permissions set, and I have Reg Globals turned on
and sessions enabled in the ini...why oh why is it not working??

Thanks for any help you might be able to provide.
Ron







Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com