ki Posted March 6, 2007 Share Posted March 6, 2007 Idk if this is the right place for this but: Can PHP sessions also be controlled by javascript? Quote Link to comment Share on other sites More sharing options...
fert Posted March 6, 2007 Share Posted March 6, 2007 The only way to access php sessions in javascript would be with Ajax Quote Link to comment Share on other sites More sharing options...
ki Posted March 6, 2007 Author Share Posted March 6, 2007 how would I do it with AJAX then? Quote Link to comment Share on other sites More sharing options...
fert Posted March 6, 2007 Share Posted March 6, 2007 have a PHP page like this $_SESSION[$_POST['session_name']]=$_POST['session_value']; and then use Ajax to POST the info to the PHP page. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.