Follow Me:

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 rows in set (0.00 sec)

mysql> desc codingslover ProjId;
+---------+-------------+------+-----+---------+-------+
| Field   | Type        | Null | Key | Default | Extra |
+---------+-------------+------+-----+---------+-------+
| ProjId  | varchar(20) | NO   | PRI | NULL    |       |
+---------+-------------+------+-----+---------+-------+
1 row in set (0.00 sec)


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. 
Solution:

 header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
 header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past