RE: problems with session vars

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I don't use much session variables, but I think the problem is on PHP.INI,
not on Windows.

You are using two different systems, you can only compare them if they are
using the same settings.

 


Caution


This registers a global variable. If you want to register a session variable
from within a function, you need to make sure to make it global using the
<http://pt.php.net/manual/en/language.variables.scope.php> global keyword or
the $GLOBALS[] array, or use the special session arrays as noted below. 

 

 

-----Original Message-----
From: Ing. Tomás Liendo [mailto:tomasjliendo@xxxxxxxxxxx] 
Sent: sábado, 25 de Fevereiro de 2006 19:18
To: php-windows@xxxxxxxxxxxxx
Subject:  problems with session vars

 

Hi I have the following problem:

 

I developed a system that it runs perfec in my PC and in hosting server with

Linux. But the session vars don't work in a hosting server with Windows...

The technical contact of the Server with Windows says me that the problem is

a space before the function session_start() in my code...

I tried this, but don't work...

 

Have any idea why session vars don't work in a Windows Server???

 

I have the same version exactly of the system in a server with Linux:

http://www.pentagonoonline.com.ar/soporte

and in a server with Windows: http://www.iracbiogen.com.ar/virtual

 

Try to login into the system with:

 

user (usuario): master

password (clave): gh306

 

In Linux you can login without problems, but in Windows you won't to leave

the login page. This is because in the Windows server the session var that

I'm using to determine if the user has loged correctly don't work...

 

How can I solve this problem?

 

I send you the files procesa_login.php (processes login) and controla.php

(controls). The first one verifies the user name and password in the

database (no problems), the second verify that the user has loged correctly

(problems with the session var $_SESSION['autentificado'] (authenticated).)

 

Well I wait to have explained to myself, and... sorry for my english...

Ahead of time, thank you very much,

 

Tom.

 

 

 


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux