[PHP] Strange Session Issues

2002-01-07 Thread Alastair

I posted a question earlier,  but I don't think I explained my problem all
that well.

I am having problem with sessions on my W2K box.  I can start sessions and
register variables but  I can't, however, seem to get the contents of the
registered variables written.

When I open the session file (the actual physical file located on the
server), this is its contents:

!sess_user|!blah|!sessUserClass|!sessFormData|!oUser|

Each of those variables should have some data associated with them.  Please
note that I have not added the '!' to the variables.

I don't think I am having file permission problems because some data is
actually being written.  The only data missing (and the most crucial) is the
contents of each those variables.

Does anybody have any suggestions?

Thanks!

alastair






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Strange Session Issues

2002-01-07 Thread Johnson, Kirk

Once again, is register_globals on or off in your php.ini file? It would
help us if we knew that :)

Kirk

 -Original Message-
 From: Alastair [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 07, 2002 9:05 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Strange Session Issues
 
 
 I posted a question earlier,  but I don't think I explained 
 my problem all
 that well.
 
 I am having problem with sessions on my W2K box.  I can start 
 sessions and
 register variables but  I can't, however, seem to get the 
 contents of the
 registered variables written.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Strange Session Issues

2002-01-07 Thread Alastair

I've turned it off.  When I try reading a variable using
$HTTP_SESSION_VARS[blah] but it says that there is no index for 'blah'.

thanks!
alastair
Kirk Johnson [EMAIL PROTECTED] wrote in message
01A4B59FD1EBD311838100A0C98BE0D9AD5EFB@chef">news:01A4B59FD1EBD311838100A0C98BE0D9AD5EFB@chef...
 Once again, is register_globals on or off in your php.ini file? It would
 help us if we knew that :)

 Kirk

  -Original Message-
  From: Alastair [mailto:[EMAIL PROTECTED]]
  Sent: Monday, January 07, 2002 9:05 AM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Strange Session Issues
 
 
  I posted a question earlier,  but I don't think I explained
  my problem all
  that well.
 
  I am having problem with sessions on my W2K box.  I can start
  sessions and
  register variables but  I can't, however, seem to get the
  contents of the
  registered variables written.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Strange Session Issues

2002-01-07 Thread Johnson, Kirk

With it off, session_register() is not needed. Also, session variables must
be accessed thru the $HTTP_SESSION_VARS[] array. Try this code:

test_session1.php
?
session_start();
$HTTP_SESSION_VARS['blah'] = good;
?

test_session2.php
?
session_start();
echo session_is_registered(blah) . br;
echo session_encode(). br;
echo isset($HTTP_SESSION_VARS) . br;
echo sizeof($HTTP_SESSION_VARS) . br;

echo $HTTP_SESSION_VARS['blah'];
?

 -Original Message-
 From: Alastair [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 07, 2002 9:33 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Strange Session Issues
 
 
 I've turned it off.  When I try reading a variable using
 $HTTP_SESSION_VARS[blah] but it says that there is no index 
 for 'blah'.
 
 thanks!
 alastair
 Kirk Johnson [EMAIL PROTECTED] wrote in message
 01A4B59FD1EBD311838100A0C98BE0D9AD5EFB@chef">news:01A4B59FD1EBD311838100A0C98BE0D9AD5EFB@chef...
  Once again, is register_globals on or off in your php.ini 
 file? It would
  help us if we knew that :)
 
  Kirk
 
   -Original Message-
   From: Alastair [mailto:[EMAIL PROTECTED]]
   Sent: Monday, January 07, 2002 9:05 AM
   To: [EMAIL PROTECTED]
   Subject: [PHP] Strange Session Issues
  
  
   I posted a question earlier,  but I don't think I explained
   my problem all
   that well.
  
   I am having problem with sessions on my W2K box.  I can start
   sessions and
   register variables but  I can't, however, seem to get the
   contents of the
   registered variables written.
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: 
 [EMAIL PROTECTED]
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Strange Session Issues

2002-01-07 Thread Alastair

WOO HOO!!! :-)

Thanks Kirk! I didn't realize that you had to use session_vars to write the
variables as well.  That's a huge weight taken off my chest. :-)

cheers,
alastair


Kirk Johnson [EMAIL PROTECTED] wrote in message
01A4B59FD1EBD311838100A0C98BE0D9AD5EFC@chef">news:01A4B59FD1EBD311838100A0C98BE0D9AD5EFC@chef...
 With it off, session_register() is not needed. Also, session variables
must
 be accessed thru the $HTTP_SESSION_VARS[] array. Try this code:

 test_session1.php
 ?
 session_start();
 $HTTP_SESSION_VARS['blah'] = good;
 ?

 test_session2.php
 ?
 session_start();
 echo session_is_registered(blah) . br;
 echo session_encode(). br;
 echo isset($HTTP_SESSION_VARS) . br;
 echo sizeof($HTTP_SESSION_VARS) . br;

 echo $HTTP_SESSION_VARS['blah'];
 ?

  -Original Message-
  From: Alastair [mailto:[EMAIL PROTECTED]]
  Sent: Monday, January 07, 2002 9:33 AM
  To: [EMAIL PROTECTED]
  Subject: Re: [PHP] Strange Session Issues
 
 
  I've turned it off.  When I try reading a variable using
  $HTTP_SESSION_VARS[blah] but it says that there is no index
  for 'blah'.
 
  thanks!
  alastair
  Kirk Johnson [EMAIL PROTECTED] wrote in message
  01A4B59FD1EBD311838100A0C98BE0D9AD5EFB@chef">news:01A4B59FD1EBD311838100A0C98BE0D9AD5EFB@chef...
   Once again, is register_globals on or off in your php.ini
  file? It would
   help us if we knew that :)
  
   Kirk
  
-Original Message-
From: Alastair [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 07, 2002 9:05 AM
To: [EMAIL PROTECTED]
    Subject: [PHP] Strange Session Issues
   
   
I posted a question earlier,  but I don't think I explained
my problem all
that well.
   
I am having problem with sessions on my W2K box.  I can start
sessions and
register variables but  I can't, however, seem to get the
contents of the
registered variables written.
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail:
  [EMAIL PROTECTED]
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Strange Session Issues

2002-01-07 Thread Johnson, Kirk

So, it *is* a Happy Monday for you ;)

You're very welcome.

Kirk

 -Original Message-
 From: Alastair [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 07, 2002 10:06 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Strange Session Issues
 
 
 WOO HOO!!! :-)
 
 Thanks Kirk! I didn't realize that you had to use 
 session_vars to write the
 variables as well.  That's a huge weight taken off my chest. :-)
 
 cheers,
 alastair

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]