Visualizzazione dei risultati da 1 a 5 su 5

Discussione: cookie

  1. #1

    cookie

    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.
    ; As of PHP 4.0.1, you can define the path 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
    ;session.save_path = "c:/ServerWeb/temp"
    ciao, non mi funzionano i cookie...

    il mio php ini è fatto così:

    session.use_cookies = 1
    ; session.use_only_cookies = 1

    session.name = PHPSESSID

    session.auto_start = 0

    session.cookie_lifetime = 0

    session.cookie_path = "c:/ServerWeb/temp"

    session.cookie_domain =

    c'è qualcosa che non va o....

    suggerimenti????

  2. #2
    quelle sono le impostazioni per le sessioni... sicuro di non avere i cookie disabilitati sul browser ? Oppure... se fai dell'output prima di scrivere i cookie il cookie non viene creato
    Chiamatemi sven se volete non ho voglia di fare una nuova email per una nuova registrazione xD
    Mac Future User , Ventilatore for PC Cooler user , - dry is coming -

  3. #3
    irelta sto manipolando il codice scritto da un'altro. sul server locale non mi funziona, mentre sul server in internet va.

    l'errore viene lanciato quando...

    leggo i cookie

    $uid = $_COOKIE['uid'];

    e il browser da sto errore

    Notice: Undefined index: uid

    il browser quindi lasci i cookie ma in locale qualcosa non va
    pensavo un setaggio del mio server

  4. #4
    giusto x provare che siano i cookie ho fatto una pagina banale fatta così

    <?
    setcookie ("TestCookie", "andrea");
    echo $HTTP_COOKIE_VARS["TestCookie"];
    ?>

    e da lo stesso errore

    Notice: Undefined index: TestCookie in D:\Sites\cookie.php on line 4

  5. #5
    non puoi settare un cookie e richiarmarlo allo stesso tempo
    prova a settare il cookie, poi aggiorna la pagina e vedi che succede
    Chiamatemi sven se volete non ho voglia di fare una nuova email per una nuova registrazione xD
    Mac Future User , Ventilatore for PC Cooler user , - dry is coming -

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.