際際滷

際際滷Share a Scribd company logo
亊亰从 PHP



           $_SESSION
           仗仂仍亰仂于舒仆亳亠 亠亳亶 于 PHP




                                        仍亠从亠亶 仂于舒仆亠仆从仂
丕仗舒于仍亠仆亳亠 亠亳礆亳

   c PHP 4.0

   HTTP - 仗仂仂从仂仍 弍亠亰 仂舒仆亠仆亳 仂仂礌亳 (stateless)

   仗仂仍亰仂于舒仆亳亠 cookie

   仗仂仍亰仂于舒仆亳亠 sessions
仗亳舒仆亳亠


   SID - 舒仆亳 于 cookie

   SID - 舒仆亳 于 URL

   SESSION - 亟舒仆仆亠 舒仆 仆舒 亠于亠亠
仂仍亠仆亳亠 SID


   $_GET[PHPSESSID]

   $_COOKIE[PHPSESSID]
舒舒仍仂 亳 仗仂亟仂仍亢亠仆亳亠 亠亳亳


   boolean session_start()
舒亰亠仆亳亠 亠亳亳

   void session_unset()

       丕亟舒仍亠仆亳亠 于亠 仗亠亠仄亠仆仆, 仂舒仆亠仆仆 于 亠亳亳

   boolean session_destroy()

       丕亟舒仍亠仆亳亠 亠亳亳, 于亠 cookie 仂舒仆ム
仂仍亠仆亳亠 亳 亰舒亟舒仆亳亠
            亳亟亠仆亳亳从舒仂舒 亠亳亳



   string session_id([string session_id])
弌仂亰亟舒仆亳亠 亳 亟舒仍亠仆亳亠
         仗亠亠仄亠仆仆 亠亳亳

   $_SESSION[param_name]=param_value

   $_SESSION[param_name]

   unset($_SESSION[param_name])
丱舒仆亠仆亳亠 仗亠亠仄亠仆仆 亠亳亳


   name|s:length:value;

   亳仄亠

       login|s:5:vasya;passwd|s:6:123456;
亠从仂亟亳仂于舒仆亳亠 仗亠亠仄亠仆仆
         亠亳亳
   string session_encode()

       亠仂弍舒亰仂于舒仆亳亠 仗亠亠仄亠仆仆 亠亳亳 于 仂从

   boolean session_decode()

       亠仂弍舒亰仂于舒仆亳亠 仂从亳 于 仗亠亠仄亠仆仆亠 亠亳亳
仂仆亠




        弌仗舒亳弍仂 亰舒 于仆亳仄舒仆亳亠


                 e-mail: a.bovanenko@gmail.com

More Related Content

Viewers also liked (8)

Galer鱈A Monica RamirezGaler鱈A Monica Ramirez
Galer鱈A Monica Ramirez
Carlos Felipe Jaramillo Lopera
Drag And Drop Windows Forms
Drag And Drop Windows FormsDrag And Drop Windows Forms
Drag And Drop Windows Forms
Alexey Bovanenko
弍舒弍仂从舒 亳仄于仂仍仂于 于 磶从亠 C
弍舒弍仂从舒 亳仄于仂仍仂于 于 磶从亠 C弍舒弍仂从舒 亳仄于仂仍仂于 于 磶从亠 C
弍舒弍仂从舒 亳仄于仂仍仂于 于 磶从亠 C
Alexey Bovanenko
Classes: Number, String, StringBuffer, StringBuilder
Classes: Number, String, StringBuffer, StringBuilderClasses: Number, String, StringBuffer, StringBuilder
Classes: Number, String, StringBuffer, StringBuilder
Alexey Bovanenko
Digital Psychrometer by ACMAS Technologies Pvt Ltd.
Digital Psychrometer by ACMAS Technologies Pvt Ltd.Digital Psychrometer by ACMAS Technologies Pvt Ltd.
Digital Psychrometer by ACMAS Technologies Pvt Ltd.
Acmas Technologies Pvt. Ltd.
Galer鱈A Monica RamirezGaler鱈A Monica Ramirez
Galer鱈A Monica Ramirez
Carlos Felipe Jaramillo Lopera
Drag And Drop Windows Forms
Drag And Drop Windows FormsDrag And Drop Windows Forms
Drag And Drop Windows Forms
Alexey Bovanenko
弍舒弍仂从舒 亳仄于仂仍仂于 于 磶从亠 C
弍舒弍仂从舒 亳仄于仂仍仂于 于 磶从亠 C弍舒弍仂从舒 亳仄于仂仍仂于 于 磶从亠 C
弍舒弍仂从舒 亳仄于仂仍仂于 于 磶从亠 C
Alexey Bovanenko
Classes: Number, String, StringBuffer, StringBuilder
Classes: Number, String, StringBuffer, StringBuilderClasses: Number, String, StringBuffer, StringBuilder
Classes: Number, String, StringBuffer, StringBuilder
Alexey Bovanenko
Digital Psychrometer by ACMAS Technologies Pvt Ltd.
Digital Psychrometer by ACMAS Technologies Pvt Ltd.Digital Psychrometer by ACMAS Technologies Pvt Ltd.
Digital Psychrometer by ACMAS Technologies Pvt Ltd.
Acmas Technologies Pvt. Ltd.

More from Alexey Bovanenko (20)

Python sqlite3
Python sqlite3Python sqlite3
Python sqlite3
Alexey Bovanenko
Python. re
Python. rePython. re
Python. re
Alexey Bovanenko
python dict
python dictpython dict
python dict
Alexey Bovanenko
Python. 弌仂从亳
Python. 弌仂从亳Python. 弌仂从亳
Python. 弌仂从亳
Alexey Bovanenko
Python. 于亠亟亠仆亳亠
Python. 于亠亟亠仆亳亠Python. 于亠亟亠仆亳亠
Python. 于亠亟亠仆亳亠
Alexey Bovanenko
仂仆于亠舒亳 仂从仂于 亟舒仆仆 于 亳仍仂于亠
仂仆于亠舒亳 仂从仂于 亟舒仆仆 于 亳仍仂于亠仂仆于亠舒亳 仂从仂于 亟舒仆仆 于 亳仍仂于亠
仂仆于亠舒亳 仂从仂于 亟舒仆仆 于 亳仍仂于亠
Alexey Bovanenko
Javascript String object
Javascript String objectJavascript String object
Javascript String object
Alexey Bovanenko
File. Java
File. JavaFile. Java
File. Java
Alexey Bovanenko
ZIP, GZIP Streams in java
ZIP, GZIP Streams in javaZIP, GZIP Streams in java
ZIP, GZIP Streams in java
Alexey Bovanenko
仂仆从仂 从仂仗亳仂于舒仆亳
仂仆从仂 从仂仗亳仂于舒仆亳仂仆从仂 从仂仗亳仂于舒仆亳
仂仆从仂 从仂仗亳仂于舒仆亳
Alexey Bovanenko
Tempale Intro
Tempale IntroTempale Intro
Tempale Intro
Alexey Bovanenko
transaction. php
transaction. phptransaction. php
transaction. php
Alexey Bovanenko
Java IO. Streams
Java IO. StreamsJava IO. Streams
Java IO. Streams
Alexey Bovanenko
Regular Expressions
Regular ExpressionsRegular Expressions
Regular Expressions
Alexey Bovanenko
从仍ム亳亠仍仆亠 亳舒亳亳
从仍ム亳亠仍仆亠 亳舒亳亳从仍ム亳亠仍仆亠 亳舒亳亳
从仍ム亳亠仍仆亠 亳舒亳亳
Alexey Bovanenko

Recently uploaded (8)

496230977-仂亳-舒仆亰从仂亶-仄仍亳仗仍亳从舒亳亳.沿沿岳恰
496230977-仂亳-舒仆亰从仂亶-仄仍亳仗仍亳从舒亳亳.沿沿岳恰496230977-仂亳-舒仆亰从仂亶-仄仍亳仗仍亳从舒亳亳.沿沿岳恰
496230977-仂亳-舒仆亰从仂亶-仄仍亳仗仍亳从舒亳亳.沿沿岳恰
StoneJanePond
亠亰亠仆舒亳 仆舒 亠仄_ _仂亞亰亳仂亞亰亳从亳从亳_.pdf
亠亰亠仆舒亳 仆舒 亠仄_ _仂亞亰亳仂亞亰亳从亳从亳_.pdf亠亰亠仆舒亳 仆舒 亠仄_ _仂亞亰亳仂亞亰亳从亳从亳_.pdf
亠亰亠仆舒亳 仆舒 亠仄_ _仂亞亰亳仂亞亰亳从亳从亳_.pdf
sabetovagulmaral
仂从仂于仂仍仆亠 于从仍ム舒亠仍亳 于 仍亠从仂仆亠亞亠亳从亠 - 仗仂仍仆仂亠 从仂于仂亟于仂
仂从仂于仂仍仆亠 于从仍ム舒亠仍亳 于 仍亠从仂仆亠亞亠亳从亠 - 仗仂仍仆仂亠 从仂于仂亟于仂仂从仂于仂仍仆亠 于从仍ム舒亠仍亳 于 仍亠从仂仆亠亞亠亳从亠 - 仗仂仍仆仂亠 从仂于仂亟于仂
仂从仂于仂仍仆亠 于从仍ム舒亠仍亳 于 仍亠从仂仆亠亞亠亳从亠 - 仗仂仍仆仂亠 从仂于仂亟于仂
povnyandrey1
弍亠仆亳亠 仍亠从仂亠仆亳从亠 仆仍 - 仗仂仍仆仂亠 从仂于仂亟于仂
弍亠仆亳亠 仍亠从仂亠仆亳从亠  仆仍 - 仗仂仍仆仂亠 从仂于仂亟于仂弍亠仆亳亠 仍亠从仂亠仆亳从亠  仆仍 - 仗仂仍仆仂亠 从仂于仂亟于仂
弍亠仆亳亠 仍亠从仂亠仆亳从亠 仆仍 - 仗仂仍仆仂亠 从仂于仂亟于仂
povnyandrey1
亠于亠仆仆舒 亳仍仂仂亳 于亠仄亠仆亳 1st Edition 亢亠舒仍亟 亢亠亶仄 丕亳仂
亠于亠仆仆舒 亳仍仂仂亳 于亠仄亠仆亳 1st Edition 亢亠舒仍亟 亢亠亶仄 丕亳仂亠于亠仆仆舒 亳仍仂仂亳 于亠仄亠仆亳 1st Edition 亢亠舒仍亟 亢亠亶仄 丕亳仂
亠于亠仆仆舒 亳仍仂仂亳 于亠仄亠仆亳 1st Edition 亢亠舒仍亟 亢亠亶仄 丕亳仂
segeygeyliz
仆仂于 仍亠从仂仆亳从亳 亟仍 仆舒亳仆舒ム亳 - 弍舒亰仂于仂亠 从仂于仂亟于仂
仆仂于 仍亠从仂仆亳从亳 亟仍 仆舒亳仆舒ム亳 - 弍舒亰仂于仂亠 从仂于仂亟于仂仆仂于 仍亠从仂仆亳从亳 亟仍 仆舒亳仆舒ム亳 - 弍舒亰仂于仂亠 从仂于仂亟于仂
仆仂于 仍亠从仂仆亳从亳 亟仍 仆舒亳仆舒ム亳 - 弍舒亰仂于仂亠 从仂于仂亟于仂
povnyandrey1
亠亰亠仆舒亳 仆舒 亠仄_ _亠亰仂仗舒仆仂亠 于仂亢亟亠仆亳亠_.pptx
亠亰亠仆舒亳 仆舒 亠仄_ _亠亰仂仗舒仆仂亠 于仂亢亟亠仆亳亠_.pptx亠亰亠仆舒亳 仆舒 亠仄_ _亠亰仂仗舒仆仂亠 于仂亢亟亠仆亳亠_.pptx
亠亰亠仆舒亳 仆舒 亠仄_ _亠亰仂仗舒仆仂亠 于仂亢亟亠仆亳亠_.pptx
sabetovagulmaral
于亠亟亠仆亳亠 于 舒于仂仄舒亳从 - 仂仆仂于仆亠 仗仂仆亳 亳 仂仗亠亟亠仍亠仆亳 舒于仂仄舒亳从亳
于亠亟亠仆亳亠 于 舒于仂仄舒亳从 - 仂仆仂于仆亠 仗仂仆亳 亳 仂仗亠亟亠仍亠仆亳 舒于仂仄舒亳从亳于亠亟亠仆亳亠 于 舒于仂仄舒亳从 - 仂仆仂于仆亠 仗仂仆亳 亳 仂仗亠亟亠仍亠仆亳 舒于仂仄舒亳从亳
于亠亟亠仆亳亠 于 舒于仂仄舒亳从 - 仂仆仂于仆亠 仗仂仆亳 亳 仂仗亠亟亠仍亠仆亳 舒于仂仄舒亳从亳
povnyandrey1
496230977-仂亳-舒仆亰从仂亶-仄仍亳仗仍亳从舒亳亳.沿沿岳恰
496230977-仂亳-舒仆亰从仂亶-仄仍亳仗仍亳从舒亳亳.沿沿岳恰496230977-仂亳-舒仆亰从仂亶-仄仍亳仗仍亳从舒亳亳.沿沿岳恰
496230977-仂亳-舒仆亰从仂亶-仄仍亳仗仍亳从舒亳亳.沿沿岳恰
StoneJanePond
亠亰亠仆舒亳 仆舒 亠仄_ _仂亞亰亳仂亞亰亳从亳从亳_.pdf
亠亰亠仆舒亳 仆舒 亠仄_ _仂亞亰亳仂亞亰亳从亳从亳_.pdf亠亰亠仆舒亳 仆舒 亠仄_ _仂亞亰亳仂亞亰亳从亳从亳_.pdf
亠亰亠仆舒亳 仆舒 亠仄_ _仂亞亰亳仂亞亰亳从亳从亳_.pdf
sabetovagulmaral
仂从仂于仂仍仆亠 于从仍ム舒亠仍亳 于 仍亠从仂仆亠亞亠亳从亠 - 仗仂仍仆仂亠 从仂于仂亟于仂
仂从仂于仂仍仆亠 于从仍ム舒亠仍亳 于 仍亠从仂仆亠亞亠亳从亠 - 仗仂仍仆仂亠 从仂于仂亟于仂仂从仂于仂仍仆亠 于从仍ム舒亠仍亳 于 仍亠从仂仆亠亞亠亳从亠 - 仗仂仍仆仂亠 从仂于仂亟于仂
仂从仂于仂仍仆亠 于从仍ム舒亠仍亳 于 仍亠从仂仆亠亞亠亳从亠 - 仗仂仍仆仂亠 从仂于仂亟于仂
povnyandrey1
弍亠仆亳亠 仍亠从仂亠仆亳从亠 仆仍 - 仗仂仍仆仂亠 从仂于仂亟于仂
弍亠仆亳亠 仍亠从仂亠仆亳从亠  仆仍 - 仗仂仍仆仂亠 从仂于仂亟于仂弍亠仆亳亠 仍亠从仂亠仆亳从亠  仆仍 - 仗仂仍仆仂亠 从仂于仂亟于仂
弍亠仆亳亠 仍亠从仂亠仆亳从亠 仆仍 - 仗仂仍仆仂亠 从仂于仂亟于仂
povnyandrey1
亠于亠仆仆舒 亳仍仂仂亳 于亠仄亠仆亳 1st Edition 亢亠舒仍亟 亢亠亶仄 丕亳仂
亠于亠仆仆舒 亳仍仂仂亳 于亠仄亠仆亳 1st Edition 亢亠舒仍亟 亢亠亶仄 丕亳仂亠于亠仆仆舒 亳仍仂仂亳 于亠仄亠仆亳 1st Edition 亢亠舒仍亟 亢亠亶仄 丕亳仂
亠于亠仆仆舒 亳仍仂仂亳 于亠仄亠仆亳 1st Edition 亢亠舒仍亟 亢亠亶仄 丕亳仂
segeygeyliz
仆仂于 仍亠从仂仆亳从亳 亟仍 仆舒亳仆舒ム亳 - 弍舒亰仂于仂亠 从仂于仂亟于仂
仆仂于 仍亠从仂仆亳从亳 亟仍 仆舒亳仆舒ム亳 - 弍舒亰仂于仂亠 从仂于仂亟于仂仆仂于 仍亠从仂仆亳从亳 亟仍 仆舒亳仆舒ム亳 - 弍舒亰仂于仂亠 从仂于仂亟于仂
仆仂于 仍亠从仂仆亳从亳 亟仍 仆舒亳仆舒ム亳 - 弍舒亰仂于仂亠 从仂于仂亟于仂
povnyandrey1
亠亰亠仆舒亳 仆舒 亠仄_ _亠亰仂仗舒仆仂亠 于仂亢亟亠仆亳亠_.pptx
亠亰亠仆舒亳 仆舒 亠仄_ _亠亰仂仗舒仆仂亠 于仂亢亟亠仆亳亠_.pptx亠亰亠仆舒亳 仆舒 亠仄_ _亠亰仂仗舒仆仂亠 于仂亢亟亠仆亳亠_.pptx
亠亰亠仆舒亳 仆舒 亠仄_ _亠亰仂仗舒仆仂亠 于仂亢亟亠仆亳亠_.pptx
sabetovagulmaral
于亠亟亠仆亳亠 于 舒于仂仄舒亳从 - 仂仆仂于仆亠 仗仂仆亳 亳 仂仗亠亟亠仍亠仆亳 舒于仂仄舒亳从亳
于亠亟亠仆亳亠 于 舒于仂仄舒亳从 - 仂仆仂于仆亠 仗仂仆亳 亳 仂仗亠亟亠仍亠仆亳 舒于仂仄舒亳从亳于亠亟亠仆亳亠 于 舒于仂仄舒亳从 - 仂仆仂于仆亠 仗仂仆亳 亳 仂仗亠亟亠仍亠仆亳 舒于仂仄舒亳从亳
于亠亟亠仆亳亠 于 舒于仂仄舒亳从 - 仂仆仂于仆亠 仗仂仆亳 亳 仂仗亠亟亠仍亠仆亳 舒于仂仄舒亳从亳
povnyandrey1

php sessions