Posts

Prevent back button after logout

down vote Add the below code inside script tag in the login HTML page (or whichever page it redirects to after logout) <script> history . pushState ( null , null , null ); window . addEventListener ( 'popstate' , function () { history . pushState ( null , null , null ); }); </script> It will disable the back button. You will not be able to go back by clicking on the back button. Note: Not tested on Safari. // Note that although users can't change anything after resetting session data and/or cookie, they still may see usual information accessible to a logged in user as they appeared on the last visit. That is caused by browser caching the page. You have to be sure to add the header on every page accessible by a logged in user, telling the browser that the data is sensitive and they should not cache the script result for the back button. It is important to add header ( "Cache-Control: no-cache, must-...

Learn Coding for Free!

Image
https://www.youtube.com/watch?v=PaDVGUnOihw “Useful Websites” Playlist https://www.youtube.com/playlist?list... freeCodeCamp https://www.freecodecamp.org/ The Odin Project https://www.theodinproject.com/ CodinGame https://www.codingame.com/start Upskill https://upskillcourses.com/ w3schools https://www.w3schools.com/ Khan Academy https://www.khanacademy.org/ General Assembly Dash https://dash.generalassemb.ly/ SoloLearn https://www.sololearn.com/ edX https://www.edx.org/ Codecademy https://www.codecademy.com/

Charts & Graphs with Animation

 Free Code Samples  CanvasJS PHP Charts supports animated rendering that makes chart look more appealing. The given example shows animated Pie Chart that along with PHP source code that you can try running locally. Chart OVERVIEW LINE CHARTS AREA CHARTS COLUMN & BAR CHARTS PIE & FUNNEL CHARTS FINANCIAL CHARTS SCATTER & BUBBLE CHARTS BOX & WHISKER CHARTS COMBINATION CHARTS DYNAMIC CHARTS DATA BINDING REACT, ANGULAR, JQUERY SERVER SIDE TECHNOLOGIES chart