Session & Cookie
session_start() -> will not override previous session
session_start() -> when its call at the same time blank file automatically created
session_destroy() -> To destroy session
Cookies
setcookies() -> Its use to destroy cookies
Flash Cookies
Write file at unknown file location, user will delete the cookies not that folder which located on user system.
Session vs Cookies?
session_start() -> will not override previous session
session_start() -> when its call at the same time blank file automatically created
session_destroy() -> To destroy session
Cookies
setcookies() -> Its use to destroy cookies
Flash Cookies
Write file at unknown file location, user will delete the cookies not that folder which located on user system.
Session vs Cookies?
- session is safer than cookies
- cookies save in user system while session file save in server
- Maximum cookie size is 4kb.
- Session is depends on cookie because it has session id
No comments:
Post a Comment