Notice: Undefined variable: root in /users/basti1012/www/index1.php on line 41
Cookies dieser Website anzeigen

Cookies dieser Website anzeigen

Zeigt alle gesetzten Cookies der Besuchten Webseite an

Der hier verwendete Code

<button onclick="javascript:_fnC(this);">Cookies dieser Website anzeigen</button> <div class="phprocks-cookie-table"></div> <script> _fnC = function(e) { c=[]; document.cookie.split(';').forEach((i)=>{ c.push('<tr><td>HTTP-Cookie</td><td>'+i.split('=').join('</td><td>')+'</td></tr>' ); }); for(var _key in sessionStorage) { if(sessionStorage.length>=1){ if(sessionStorage.hasOwnProperty(_key)){ c.push('<tr><td>sessionStorage</td><td>'+_key+'</td><td>'+sessionStorage.geti(_key)+'</td></tr>'); }else{ } }else{ c.push('<tr><td colspan="3"><strong>Kein Session storage gespeichert</strong></td></tr>'); break; } } for(var _key in localStorage) { if(localStorage.length>=1){ if(localStorage.hasOwnProperty(_key)) { c.push('<tr><td>localStorage</td><td>'+_key+'</td><td>'+localStorage.getItem(_key)+'</td></tr>'); }else{ } }else{ c.push('<tr><td colspan="3"><strong>Kein Local storage gespeichert</strong></td></tr>'); break; } } _outPut='<table><thead><tr><td colspan="3">Diese Cookies sind derzeit gesetzt</td></tr><tr><td>Cookie-Typ</td><td>Name</td><td>Wert</td></tr></thead><tbody>'+c.join('')+'</tbody></table>'; document.querySelector('.phprocks-cookie-table').innerHTML=_outPut; e.style.display='none';}; </script>