Cita:
Iniciado por mauritosuarez
Si que esta raro el tema! :D
No existe una directiva que activa o desactiva las variables de sesión. Pero lo que si tienes que hacer es asegurarte que la configuración es correcta. Sobretodo estas dos diretivas en tu php.ini
session.save_handler = files
session.save_path="C:\xampp\tmp"
La primera indica el controlador que usará las sesiones. Puede ser ficheros, base de datos, Memcache etc.
Si la primera la tienes definida como 'files' necesitas en la segunda variable la ruta donde vas a guardar las sesiones. El directorio donde deseas guardarlas debe tener permisos de escritura para el usuario de Apache o el servidor web que uses.
También revisa que el uso de cookies este con el valor 1
session.use_cookies = 1
Te paso un link donde habla de configurar el php.ini para las sessiones, esta en ingles.
http://www.geekgumbo.com/2010/03/02/php-ini-configuring-sessions-in-your-application/
Espero te sirva.
Ok amigo muchas gracias le dare una leida y gracias por tus respuestas amigo.
En cuento lo que me dijistes
asi esta en mi php.ini =
[Session]
; Handler used to store/retrieve data.
; http://php.net/session.save-handler
session.save_handler = files
; Argument passed to save_handler. In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
;
; The path can be defined as:
;
;
session.save_path = "N;/path"
;
; where N is an integer. Instead of storing all the session files in
; /path, what this will do is use subdirectories N-levels deep, and
; store the session data in those directories. This is useful if you
; or your OS have problems with lots of files in one directory, and is
; a more efficient layout for servers that handle lots of sessions.
;
; NOTE 1: PHP will not create this directory structure automatically.
; You can use the script in the ext/session dir for that purpose.
; NOTE 2: See the section on garbage collection below if you choose to
; use subdirectories for session storage
;
; The file storage module creates files using mode 600 by default.
; You can change that by using
;
;
session.save_path = "N;MODE;/path"
;
; where MODE is the octal representation of the mode. Note that this
; does not overwrite the process's umask.
; http://php.net/session.save-path
session.save_path = "c:/wamp/tmp"
; Whether to use strict session mode.
; Strict session mode does not accept uninitialized session ID and regenerate
; session ID if browser sends uninitialized session ID. Strict mode protects
; applications from session fixation via session adoption vulnerability. It is
; disabled by default for maximum compatibility, but enabling it is encouraged.
; https://wiki.php.net/rfc/strict_sessions
session.use_strict_mode = 0
; Whether to use cookies.
; http://php.net/session.use-cookies
session.use_cookies = 1