Bluehost.com Web Hosting $6.95

RE: [PHP] Debugging a Session Problem

This is a discussion on RE: [PHP] Debugging a Session Problem within the PHP General forums, part of the PHP Programming Forums category; Sorry, I am stumped. I don't see any problems in the .ini file. Have you tried some simple code ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-26-2003
Kirk Johnson
 
Posts: n/a
Default RE: [PHP] Debugging a Session Problem

Sorry, I am stumped. I don't see any problems in the .ini file. Have you
tried some simple code in "register_globals off" style?

<?
session_start();
$_SESSION['test'] = 'foobar';
header('Location: page2.php');
?>

<?
session_start();
echo "test is {$_SESSION['test']}<br>";
?>

Kirk

> -----Original Message-----
> From: Lee Stewart [mailto:lstewart@dsgroup.com]
> Sent: Friday, July 25, 2003 4:27 PM
> To: php-general@lists.php.net
> Subject: RE: [php] Debugging a Session Problem
>
>
> I agree that it's probably a config problem -- somewhere...
>
> Yes, the session ID is passed correctly, but since page1.php
> doesn't end up
> with any variables or values in the session file, so
> regardless that it has
> the right session ID, there's nothing in the session file to
> restore...
>
> The php.ini file is in /etc/php.ini (but that's where it's
> supposed to be
> in this distribution), and phpinfo shows it there, and when I turn
> register_globals on and off there, I see it change both in
> phpinfo and from
> a php script.
>
> And if you want to look, a copy of my php.ini is available at
> http://4.43.81.92/phpini.txt

Reply With Quote
  #2 (permalink)  
Old 07-26-2003
Curt Zirzow
 
Posts: n/a
Default Re: [PHP] Debugging a Session Problem

* Thus wrote Lee Stewart (lstewart@dsgroup.com):
> Using the $_SESSION[] style produces the same results... Zero length
> session file in /tmp, and no data passed... (available at
> http://4.43.81.92/page1a.php)


You did see my post about space left on /tmp?

>
> So where do I go from here... Is there any way to debug it? Like I
> said, I suspect it's not a PHP code bug, but I'm at a loss as to where to
> go from here (other than re-writing the entire application in some other
> language -- which I really don't want to do)...


another language? how dare you say such thing here on this list :)

Curt
--
"I used to think I was indecisive, but now I'm not so sure."
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB 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 02:53 AM.


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