[PHP] header() and passing sessions

2009-04-15 Thread Adam Williams
I need some help passing a session variable with a header() function. According to www.php.net/header, the documentation states: *Note*: Session ID is not passed with Location header even if session.use_trans_sid session.configuration.php#ini.session.use-trans-sid is enabled. It must by

RE: [PHP] header() and passing sessions

2009-04-15 Thread abdulazeez alugo
Date: Wed, 15 Apr 2009 11:09:19 -0500 From: awill...@mdah.state.ms.us To: php-general@lists.php.net Subject: [PHP] header() and passing sessions I need some help passing a session variable with a header() function. According to www.php.net/header, the documentation states: *Note

Re: [PHP] header() and passing sessions

2009-04-15 Thread Adam Williams
abdulazeez alugo wrote: Hi, Well I'ld say the reason is quite obvious. You have simply not set $_session[username] . I'ld have done something like: -- option.php -- ?php session_start(); if ($_POST[option] == View Pending Requests) { $_session[username]= true; //sets the session