I want to save some info in session/cookie through Javascript.
I am trying to pull some content from mainpage and assign it to session/cookie variables and then use it inside my iframe
I think this is the best way to get values from mainpage to an iframe
pleas let me know if this idea is a better one and guide me how to assign values to the session/cookie variables through javascript
eg:
URL ="sitename.com/mypage/1.php?test=1&mode=0" //just an example url
to session variable 'ifra_url' = "sitename.com/mypage/1.php?test=1&mode=0"
I go thorught some websites which says its not possible to create session with javascript as session is server side scripted and I update my question how to create COOKIE with javascript as it saves data in browser not anywhere else