Uncommenting the code
Redirecting to form once the alert has dismissed
Fixing bug when session expires
Adding functions from client side to do a request when session has expired. This should be made according to gc_maxlifetime variable on php.ini file
Fixing comments
Adding a new style class to hide the close button and it will be activated when the condition is equals to 1