Session variables contain no values

This is a discussion on Session variables contain no values within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hi everybody. I'm experiencing strange problems with PHP session files: a user submits a form with UID and PWD. ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-29-2003
Harald
 
Posts: n/a
Default Session variables contain no values

Hi everybody.

I'm experiencing strange problems with PHP session files:
a user submits a form with UID and PWD. The next page checks these
credentials, opens a session if successful, registers certain variables and
then redirects to the first application page.

**snip**
// logon.php, receives UID/PWD

if ($query_ok) {
session_start();
// register certain variables
session_write_close();

//redirect to Lounge
header ("Location: ./start.php?".SID);
}
**snap**

The start.php obviously receives a valid session variable PHPSESSID (visible
in the browser's address bar), the file to which also exists in the /tmp
directory. The variables are also registered in this file, however they
CONTAIN NO VALUES, not one of them !!

Can anybody help ?

Thanks,
Harald


Reply With Quote
  #2 (permalink)  
Old 10-29-2003
Peter Aichhorn
 
Posts: n/a
Default Re: Session variables contain no values

Harald wrote:

> //redirect to Lounge
> header ("Location: ./start.php?".SID);
>

i'm not sure, but don't you have to write a name AND a value in the url?

header ("Location: ./start.php?id=".SID);

(guessing) peter

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:55 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0