Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    session_set_save_handler e sessions in DB .

    Ciao.
    Che ne pensate di utilizzare session_set_save_handler per
    salvare le sessions in DB ?
    Secondo me può essere una valida alternativa a sviluppare
    tutta la gestione delle sessions ex-novo e quindi a rinventare
    la ruota.
    Voglio dire visto che il ns PHP ha questa built-in function
    perchè non sfruttarla ?


    Without faith, nothing is possible. With it, nothing is impossible
    http://ilwebdifabio.it

  2. #2

    .............

    C'è qc che mi spiega perchè
    mettendo session_set_save_handler
    dentro ad una classe bisogna richiamarlo
    in questo modo:
    session_set_save_handler(array($this,'openSession' ),array($this,'closeSession'),array($this,'readSes sion'),array($this,'writeSession'),array($this,'de stroySession'),array($this,'gcSession'));
    Grazie.


    Without faith, nothing is possible. With it, nothing is impossible
    http://ilwebdifabio.it

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.