Re: [PHP] RESOLVED, sort of -- Re: [PHP] where is my session data on my new server?

2003-10-19 Thread David T-G
Curt, et al --

...and then Curt Zirzow said...
% 
% * Thus wrote David T-G ([EMAIL PROTECTED]):
%  Hi, all --
%  
%  It appears that the change from 4.2.3 to 4.3.4rc1 was not something that
%  got broken but instead something that got fixed.  Oh, yay.  But what do I
%  do now?  Hmmm...
% 
% I'm catching up in emails a little late but using $_SESSION[]
% access would resovle this issue.

Gotcha.  Thanks!


% 
...
%  session_name('name') ;
%  session_start ;
% 
% hmm... doesn't session_start requrire the ()? ie :
%  
%  session_start();

It seems that it does.  Oddly enough, everything always worked just fine.
Perhaps it was because the next line was a session_register which implied
a session_start() for me :-)


% 
% Curt


Thanks  HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, Science and Health
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


Re: [PHP] RESOLVED, sort of -- Re: [PHP] where is my session data on my new server?

2003-10-18 Thread Curt Zirzow
* Thus wrote David T-G ([EMAIL PROTECTED]):
 Hi, all --
 
 It appears that the change from 4.2.3 to 4.3.4rc1 was not something that
 got broken but instead something that got fixed.  Oh, yay.  But what do I
 do now?  Hmmm...

I'm catching up in emails a little late but using $_SESSION[]
access would resovle this issue.

 
 The code
 
   ?php
 session_name('name') ;
 session_start ;

hmm... doesn't session_start requrire the ()? ie :
 
 session_start();





Curt
-- 
My PHP key is worn out

  PHP List stats since 1997: 
  http://zirzow.dyndns.org/html/mlists/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] RESOLVED, sort of -- Re: [PHP] where is my session data on my new server?

2003-10-17 Thread David T-G
Hi, all --

It appears that the change from 4.2.3 to 4.3.4rc1 was not something that
got broken but instead something that got fixed.  Oh, yay.  But what do I
do now?  Hmmm...

The code

  ?php
session_name('name') ;
session_start ;
session_register('pw') ;
$pwc = realpass ;
if ( $pw != $pwc )
{
  if ( $pw !=  )
  {
print Invalid password!br\n ;
session_unregister('pw') ;
  }
  print form method='post'\n ;
  print Password:brinput teyp='password' name='pw'br\n ;
  print input type='submit' value='ENTER'\n/form\n ;
  session_write_close() ;
  exit ;
}
// protected page body here
  ?

used to work but now does not, apparently because now one cannot register
a session variable unless a regular var of the same name has already been
defined.  That is,

  ?php
if ( $_GET['stop'] )
{
  session_start() ;
  print pw is .$pw.\n ;
  exit ;
}
$pw = pass ;
session_register('pw') ;
header(Location: ?stop=1) ;
  ?

*does* work.  Of course, I have to turn my code inside out or worse to do
this (I don't really know where I'm going to go, either; that code is a
direct copy of an example shown to me, so I don't yet see how to turn my
code inside out to match it).

I still don't know what the bug was or how it was fixed or if I can
return to the old behavior (which certainly would put me back in business
quickly and let me fix all of my code on a reasonable schedule), but at
least I think I have it pinned down to 1) not a mis-setting in php.ini
and 2) probably not something I can fix quickly.

If, based on this, anyone has any more info or pointers, I sure would
love them :-)


Thanks  HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, Science and Health
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature