Language : PHP & Javascript
I am maintaining a site in which I have two CSS, one for screen width less than 1024 and other for screen width greater than 1024. I use to match CSS by checking screen width in Javascript as follows.
var one=screen.width;
if(screen.width<1024)
document.getElementById('cs')='one.css';
else
document.getElementById('cs')='two.css';
Now I want the result of this if condition to be stored to a session variable in PHP. How can I implement this and is this really possible? Someone please help me out.
Thanks.