Follow Me:

Wednesday, 1 April 2015

Cookies are stored in browser as a text file format.It is stored limit amount of data.It is only allowing 4kb[4096bytes].It is not holding the multiple variable in cookies. we can accessing the cookies values in easily.So it is less secure.The setcookie() function must appear BEFORE the <html> tag. Sessions are stored in server side.It is stored unlimit amount of data.It is holding the multiple variable in sessions. we cannot accessing the...

Wednesday, 25 February 2015

Expire the session after some peiod of time by using in php. Basically, two methods are available to destory the sessions.    1. session_destroy()    2. unset($_SESSION['testvaraible'])    3. setting the time out for this session  1.session_destroy()      if we will call the session_destroy(), it will destroy all the SESSION variable.It is no need any other parameters. <?php session_destroy(); ?> 2....

Saturday, 10 January 2015

mysql> desc codingslover; +----------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +----------+-------------+------+-----+---------+-------+ | ProjId | varchar(20) | NO | PRI | NULL | | | BranchId | int(11) | YES | | NULL | | | AddedOn | datetime | YES | | NULL | | | Status | int(11) | YES | | NULL | | +----------+-------------+------+-----+---------+-------+ 4...
How to resolved when Logged out sessions get restored by back button? When we log out the sessions , We clear the cookies in browser. But when we press the back button after logging out the session gets restored.  Link : http://www.codingslover.com/2015/01/How-to-resolved-when-Logged-out-sessions-get-restored-by-back-button.html Solution: header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: Sat, 26...