Re: [PHP] Re: Session problems

2001-08-01 Thread LITS

At home I am using Win98, BadBlue Server, PHP 4.0.5 and 4.0.6.  Here
sessions (same example script I posted earlier) seem to work 100%.  Must be
a config setting at work.

BK



Rudolf Visagie [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi Bernie,

 Do a session_register in the second script as well:
 ?php
  session_start();
  session_register(my_session_variable);
  print Value of 'my_session_variable': $my_session_variable;
  ?

 Rudolf Visagie

 -Original Message-
 From: Bernie Kruger [mailto:[EMAIL PROTECTED]]
 Sent: 19 July 2001 04:55
 To: [EMAIL PROTECTED]
 Subject: [PHP] Re: Session problems


 Tried everything all of you suggested, still no luck :-(

 BK

 Bernie Kruger [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Hi,
 
  I use this simple session script below,  but the session variables are
not
  carried over from 1.php to 2.php.  What can be wrong?  I can see on the
  server that the files are created.  When I open 1.php a 1K file is
created
  on the server and the contents (my_session_variable|s:10:some value;).
  When I open 2.php afterwards a 0K file is created on the server which is
  empty.
 
  I use IIS5, Win2k, PHP 4.0.5, IE5.5.
  Session method: files
 
  (1.php)
 
  ?php
  session_start();
  $my_session_variable = some value;
  session_register(my_session_variable);
  ?
 
  and
 
  (2.php)
 
  ?php
  session_start();
  print Value of 'my_session_variable': $my_session_variable;
  ?
 
  Tx
  BK
 
 



 --
 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] Re: Session problems

2001-07-19 Thread Rudolf Visagie

Hi Bernie,

Do a session_register in the second script as well:
?php
 session_start();
 session_register(my_session_variable);
 print Value of 'my_session_variable': $my_session_variable;
 ?

Rudolf Visagie

-Original Message-
From: Bernie Kruger [mailto:[EMAIL PROTECTED]]
Sent: 19 July 2001 04:55
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Session problems


Tried everything all of you suggested, still no luck :-(

BK

Bernie Kruger [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi,

 I use this simple session script below,  but the session variables are not
 carried over from 1.php to 2.php.  What can be wrong?  I can see on the
 server that the files are created.  When I open 1.php a 1K file is created
 on the server and the contents (my_session_variable|s:10:some value;).
 When I open 2.php afterwards a 0K file is created on the server which is
 empty.

 I use IIS5, Win2k, PHP 4.0.5, IE5.5.
 Session method: files

 (1.php)

 ?php
 session_start();
 $my_session_variable = some value;
 session_register(my_session_variable);
 ?

 and

 (2.php)

 ?php
 session_start();
 print Value of 'my_session_variable': $my_session_variable;
 ?

 Tx
 BK





-- 
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] Re: Session problems

2001-07-19 Thread Steve Brett

you only need to register vars with the session once.

Steve

Rudolf Visagie [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi Bernie,

 Do a session_register in the second script as well:
 ?php
  session_start();
  session_register(my_session_variable);
  print Value of 'my_session_variable': $my_session_variable;
  ?

 Rudolf Visagie

 -Original Message-
 From: Bernie Kruger [mailto:[EMAIL PROTECTED]]
 Sent: 19 July 2001 04:55
 To: [EMAIL PROTECTED]
 Subject: [PHP] Re: Session problems


 Tried everything all of you suggested, still no luck :-(

 BK

 Bernie Kruger [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Hi,
 
  I use this simple session script below,  but the session variables are
not
  carried over from 1.php to 2.php.  What can be wrong?  I can see on the
  server that the files are created.  When I open 1.php a 1K file is
created
  on the server and the contents (my_session_variable|s:10:some value;).
  When I open 2.php afterwards a 0K file is created on the server which is
  empty.
 
  I use IIS5, Win2k, PHP 4.0.5, IE5.5.
  Session method: files
 
  (1.php)
 
  ?php
  session_start();
  $my_session_variable = some value;
  session_register(my_session_variable);
  ?
 
  and
 
  (2.php)
 
  ?php
  session_start();
  print Value of 'my_session_variable': $my_session_variable;
  ?
 
  Tx
  BK
 
 



 --
 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] Re: Session problems

2001-07-19 Thread Rudolf Visagie

I use only sessions and my scripts do not work if I do not register the
session variables I want in each script. Otherwise they work fine.

R

-Original Message-
From: Steve Brett [mailto:[EMAIL PROTECTED]]
Sent: 19 July 2001 05:39
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Session problems


you only need to register vars with the session once.

Steve

Rudolf Visagie [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi Bernie,

 Do a session_register in the second script as well:
 ?php
  session_start();
  session_register(my_session_variable);
  print Value of 'my_session_variable': $my_session_variable;
  ?

 Rudolf Visagie

 -Original Message-
 From: Bernie Kruger [mailto:[EMAIL PROTECTED]]
 Sent: 19 July 2001 04:55
 To: [EMAIL PROTECTED]
 Subject: [PHP] Re: Session problems


 Tried everything all of you suggested, still no luck :-(

 BK

 Bernie Kruger [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Hi,
 
  I use this simple session script below,  but the session variables are
not
  carried over from 1.php to 2.php.  What can be wrong?  I can see on the
  server that the files are created.  When I open 1.php a 1K file is
created
  on the server and the contents (my_session_variable|s:10:some value;).
  When I open 2.php afterwards a 0K file is created on the server which is
  empty.
 
  I use IIS5, Win2k, PHP 4.0.5, IE5.5.
  Session method: files
 
  (1.php)
 
  ?php
  session_start();
  $my_session_variable = some value;
  session_register(my_session_variable);
  ?
 
  and
 
  (2.php)
 
  ?php
  session_start();
  print Value of 'my_session_variable': $my_session_variable;
  ?
 
  Tx
  BK
 
 



 --
 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]

-- 
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] Re: Session problems

2001-07-19 Thread Jason Bell

I have a file that I include at the beginning of every .php file it
contains the following code, and works perfectly:

session_start();
if (!$PHPSESSID) {
  session_register('sess_uid');
  session_register('sess_acl');
  session_register('sess_fname');
  session_register('sess_lname');
  session_register('sess_uname');
 };

note that I do not store any value for the variables before registering them
with the session


- Original Message -
From: Rudolf Visagie [EMAIL PROTECTED]
To: Steve Brett [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, July 19, 2001 9:38 AM
Subject: RE: [PHP] Re: Session problems


 I use only sessions and my scripts do not work if I do not register the
 session variables I want in each script. Otherwise they work fine.

 R

 -Original Message-
 From: Steve Brett [mailto:[EMAIL PROTECTED]]
 Sent: 19 July 2001 05:39
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Re: Session problems


 you only need to register vars with the session once.

 Steve

 Rudolf Visagie [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Hi Bernie,
 
  Do a session_register in the second script as well:
  ?php
   session_start();
   session_register(my_session_variable);
   print Value of 'my_session_variable': $my_session_variable;
   ?
 
  Rudolf Visagie
 
  -Original Message-
  From: Bernie Kruger [mailto:[EMAIL PROTECTED]]
  Sent: 19 July 2001 04:55
  To: [EMAIL PROTECTED]
  Subject: [PHP] Re: Session problems
 
 
  Tried everything all of you suggested, still no luck :-(
 
  BK
 
  Bernie Kruger [EMAIL PROTECTED] wrote in message
  [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
   Hi,
  
   I use this simple session script below,  but the session variables are
 not
   carried over from 1.php to 2.php.  What can be wrong?  I can see on
the
   server that the files are created.  When I open 1.php a 1K file is
 created
   on the server and the contents (my_session_variable|s:10:some
value;).
   When I open 2.php afterwards a 0K file is created on the server which
is
   empty.
  
   I use IIS5, Win2k, PHP 4.0.5, IE5.5.
   Session method: files
  
   (1.php)
  
   ?php
   session_start();
   $my_session_variable = some value;
   session_register(my_session_variable);
   ?
  
   and
  
   (2.php)
  
   ?php
   session_start();
   print Value of 'my_session_variable': $my_session_variable;
   ?
  
   Tx
   BK
  
  
 
 
 
  --
  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]

 --
 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]