Re: Re: Problemas con sesiones
| From: | Gustavo Pardo | Date: | Tue, 31 Jan 2006 14:20:06 +0000 |
| Subject: | Re: Re: Problemas con sesiones | ||
| References: | 1 2 3 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-57604@lists.php.net to get a copy of this message | ||
El Mar 31 Ene 2006 10:27, carlos Medina escribió:
> Hola Gustavo,
> gracias por tu aporte. Pienso luego que segun el manual:
>
> "session_start() crea una sesió (o la continúa basandose en el session
> id pasado por GET o mediante una cookie)."
>
> En el caso de Raynier debe haber un modificador que no le permite a la
> sesion de instanciar la sesion antigua. Yo uso el metodo de probar
seee, ahí no dije nada porque no se me ocurre qué pueda llegar a ser.
> manualmente la sesion para estar seguro de que no ha cambiado (ni me la
> han cambiado). Mira esta sesion:
>
> class session
> {
> var $resource;
> function session( $options )
> {
> $this->error = ( bool )false;
> $this->sh_sid = $options['sh_sid'];
> $this->db['host'] = $options['host'];
> $this->db['user'] = $options['user'];
> $this->db['pass'] = $options['pass'];
> $this->db['dbas'] = $options['dbas'];
> $this->db['ss_table'] = $options['db_ss_table'];
> $this->db['id_field'] = $options['db_id_field'];
> $this->db['ex_field'] = $options['db_ex_field'];
> $this->db['dt_field'] = $options['db_dt_field'];
> $this->db['connection'] = $options['db_connection'];
> $this->sess['expire'] = $options['sess_expire'];
> $this->sess['name'] = $options['sess_name'];
> $this->sess['cookies'] = $options['sess_use_cookies'];
> $this->sess['only_cookies'] = $options['sess_only_cookies'];
> $this->sess['probability'] = $options['sess_probability'];
> $this->sess['sid_len'] = $options['sess_len'];
> $this->set_ini();
>
> session_set_save_handler( array( &$this, 'open' ),
> array( &$this, 'close' ),
> array( &$this, 'read' ),
> array( &$this, 'write' ),
> array( &$this, 'destroy' ),
> array( &$this, 'gc' ) );
>
> if ( isset($_GET['NEW_DMSESS']) ) {
> session_id($_GET['NEW_DMSESS']);
> session_start();
> } else if ( ( !isset( $_REQUEST[$this->sess['name']] ) )
> && ( $this->sh_sid ) ) {
>
> session_id( $this->new_sid() );
> session_start();
>
> [...]
>
curiosidad nomás :) ¿qué le pasás como $options?
> saludos
>
> Carlos
--
Gustavo Pardo
http://drupaleros.com.ar/