Ok, so i know basic HTML, and CSS and i have created my own personal portfolio website and i have hosting and a domain. I created a mobile version, and found a small Javascript code snippet that redirects a client depending on their screen resolution. This is awesome so that people viewing my site can view the mobile version and not the regular version, but i want them to be able to view the full site if they wish, so i know that to do that i need to set a cookie so the browser will know when the client tries to view the regular site again to let them.

I HAVE NO IDEA HOW TO PROGRAM JAVASCRIPT.

So is there a thread here that explains what im trying to do?

Is it possible to do this with Javascript?

Is it easier to do it with PHP?

Does anyone have any good links to teach a beginner how to do this?

I thank you all sincerely,

Ryan