2014年12月25日 星期四

JSON

src:

[S1] http://zh.wikipedia.org/wiki/JSON
[S2] http://www.jsoneditoronline.org/

notes:

[1] JSON is identified by
 var : val
[2] JSON could express the array
 [... ] , [... ] , [... ]
[3] utility could refer to [S2].


2014年12月23日 星期二

Cookie & Session setting in PHP

src:

http://support.qualityunit.com/021373-How-To-Enable-Session-Support-for-PHP


notes:


----------------------

How To Enable Session Support for PHP?

The session support can be turned on automatically at the site level, or manually in each PHP page script: Turning on session support automatically at the site level we have to modify some setting in php.ini file. you can get php.ini file in folder you install PHP. To your sessions you have to set or reset following parameter in your php.ini file
Define path to save sessions
session.save_path = "C:\php\sessiondata\"
Whether to use cookies.
session.use_cookies = 1

Name of the session (used as cookie name).
session.name = PHPSESSID

Define Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0

;The path for which the cookie is valid.
session.cookie_path = /

The domain for which the cookie is valid.
session.cookie_domain =

 Handler used to serialize data. php is the standard serializer of PHP.
session.serialize_handler = php

There are some more setting which may be used to modify your Sessions. For more  Details refer php.ini
support manually in each page script:
 Call session_start() funtion.