Jump to content
php.lv forumi

andrisp

Moderatori
  • Posts

    8,065
  • Joined

  • Last visited

Posts posted by andrisp

  1. Par pirmo problēmu - tas tāpēc, ka skriptā droši vien nav session_start();

     

    Un otrā problēma ir tāpēc, ka ir pirmā problēma.

     

    hmnc, ar to session_destroy() vispār ir interesanti. Tas neiznīcina $_SESSION masīva saturu.

     

    session_destroy() destroys all of the data associated with the current session. It does not unset any of the global variables associated with the session, or unset the session cookie.

     

    Man vispār nav skaidrs, ko tad viņš tur īsti iznīcina.

     

    Katrā ziņā - $_SESSION = array(); does the job.

×
×
  • Create New...