[PHP] [APACHE-PHP-WIN] : $_SESSION problems

2002-03-31 Thread John Mpaliza








  
  I configured well ( I think) my system (win32-apache 1.3.24-php4.1.2) 
  and every think is working except session variables.Codes like this 
  don't work:
  page1.php
  ?php 
   session_start();
   $_SESSION['test']="adding";
   header("Location: page2.php?".SID);
   exit;
  ?
  
  page2.php
  ?php
   session_start();
   print $_SESSION['test'];
  ?
  
  Question: 
  ---
  Why in the 2ndpage $_SESSION['test'] is not set and 
  so noavailable?
  N.B: All codes I wrotefirst for php4.1.0 don't work with the 
  new version of php
  
  Please help me
  Thank you.







___ IncrediMail - il mondo della posta elettronica si 
è finalmente evoluto - Clicca 
Qui

[PHP] [PHP4.1.2-APACHE1.3.24-WIN32]: using $_SESSION

2002-03-29 Thread John Mpaliza








  
  I'm using Apache-win-php4.1.3 and can't create session variables by 
  using session_start() and $_SESSION['...']. I'm new to php, please 
  help.
  Next week I tried php4.1.1 and all was working well. Now, I'm using 
  php4.1.2, as an Apache module and with 
  session.use_trans_sid=1,register_globals=off in php.ini, I can't 
  redirect a page to another and access the $_SESSION['variables'] defined 
  in the 1st document. All codes that were working correctly first now do 
  not.
  es. pageone.php
  ?php
   session_start();
   $_SESSION['var']="testsession";
   header( "Location: anotherpage.php?".SID);
   exit;
  ?
  -
  anotherpage.php
  
  ?php
   session_start();
   print $_SESSION['var'];
   ..
  ?
  N.B: I got a warning: undefined index : var; and make some controls I 
  noticed that $_SESSION['var'] is not set in the anotherpage.php. And in 
  pageone.php, $_SESSION['var'] is set as a normal variable but not a 
  session variable because all files (sess_21ae6dg34) in the 
  temp directory are EMPTY.EMPTY..
  $_SESSION isset but $_SESSION['...'] exits in a page as a normal 
  variable but not a session variable.
  
  Please help me. Thank u.
  
  John







___ IncrediMail - il mondo della posta elettronica si 
è finalmente evoluto - Clicca 
Qui

[PHP] [PHP-APACHE-WIN]: using $_SESSION instead of register().......

2002-03-29 Thread John Mpaliza




  
  

  
  
  


  
I'm using Apache-win-php4.1.3 and can't create session 
variables by using session_start() and $_SESSION['...']. I'm new 
to php, please help.
Next week I tried php4.1.1 and all was working well. Now, using 
php4.1.3, compiled as an Apache module and with 
session.use_trans_sid=1 in php.ini, I can't redirect a page to 
another and access the $_SESSION['variables'] defined in the 1st 
document. All codes that were working correctly first now do 
not.
es. pageone.php
?php
 session_start();
 $_SESSION['var']="testsession";
 header( "Location: anotherpage.php?".SID);
 exit;
?
-
anotherpage.php

?php
 session_start();
 print $_SESSION['var'];
 ..
?
N.B: I got a warning: undefined index : var; and make some 
controls I noticed that $_SESSION['var'] is not set in the 
anotherpage.php. And in pageone.php, $_SESSION['var'] is set as a 
normal variable but not a session variable because all files 
(sess_21ae6dg34) are EMPTY.

Please help me. Thank u.

John

  

  
  



  
  

  


  
  
  ___ IncrediMail - il mondo della posta elettronica si 
è finalmente evoluto - Clicca 
Qui

[PHP] Using session functions in PHP4.1.1

2002-02-03 Thread John Mpaliza

Hi,

I'm using Win ME-Apache1.3.22-PHP4.1.1 and run this script:
?php
session_start();
?
I got this error: Php has caused an error in PHP4TS.DLL and will be closed. If the 
problem continues try to reboot your system.
And in the Apache log file I got : Premature end of script headers.
This happens when using functions: session_start and session_register
What can I do to resolve the problem.


John Mpaliza