Visualizzazione dei risultati da 1 a 3 su 3

Discussione: a prosito di sessioni

  1. #1

    a prosito di sessioni

    Salve a tutti.
    Leggendo php.net mi è
    sorto un dubbio
    // Use of session_register() is deprecated
    $barney = "A big purple dinosaur.";
    session_register("barney");

    // Use of $_SESSION is preferred, as of PHP 4.1.0
    $_SESSION["zim"] = "An invader from another planet.";

    // The old way was to use $HTTP_SESSION_VARS
    $HTTP_SESSION_VARS["spongebob"] = "He's got square pants.";
    Sembrerebbe che il metodo $_SESSION["zim"]
    sia da preferire a session_register("barney")
    cosa ne pensate ?
    Il dubbio mi è sorto xchè nel libro PHP 5
    è ancora riportato session_register().
    Salutoni.
    Whisher
    Without faith, nothing is possible. With it, nothing is impossible
    http://ilwebdifabio.it

  2. #2
    Utente di HTML.it L'avatar di gianiaz
    Registrato dal
    May 2001
    Messaggi
    8,027
    in più di un articolo e anche sulla doc ufficiale

    http://www.php.net/manual/en/functio...n-register.php

    dice che session_register è deprecato...

    Poi sinceramente per una questione di abitudine oramai preferisco usare SESSION come un qualsiasi altro array..

    ciao

  3. #3

    bel sitino !

    Grafica essenziale ma
    gran bei contenuti!
    Tk for the advise.
    Mai trovato materiale
    + chiaro sulle regular expression
    congratulation!
    Whisher
    God doesn't play dice.
    Whisher
    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.