Profile Picture
IT Made Easy
The site provides some rough IT Notes that make your life easier. The site currently has notes on HTML, CSS, Regex, OOPS, JS, JQuery, PHP, Java, ASP.NET, C#, Database, Linux, URL Rewrite, SEO, Project Management and Hosting. Please do share this site if you like.

Super Globals

Next
Next
  • If register_globals turned ON the super globals will be stored in its corresponding local veriables creating security issues. So we need to initialize local variables before use
  • session_start( ) => PHP will check to see whether the visitor sent a session cookie. If it did, PHP will load the session data. Otherwise, PHP will create a new session file on the server, and send an ID back -- SESSID or whatever name in config file
  • Clear session data for a user => $_SESSION = array( ); session_destroy( ); For a particular session variable use unset
  • Sessions store only Id in a cookie and it expires when browser closes. It cannot be used outside a specific webbrowser. The corresponding datafile is stored on the server
  • Setcookie(name, value, expiry, path, domain, secure)   // Before any html output
  • Cookies are hackable and permanent, can work with cluster of web servers, set with first page and resent back with every page

IT Notes

by VinodSebastian



IT Downloads


Catalogue