I have a small script that returns the width and height of my Window, what I need is to save the result to a PHP session variable.
My script
var viewportwidth;
var viewportheight;
if (typeof window.innerWidth != 'undefined')
{
viewportwidth = window.innerWidth,
viewportheight = window.innerHeight
}
like
$_SESSION['w'] = viewportwidth
$_SESSION['h'] = viewportheight
Is this possible?