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? Link to comment https://forums.phpfreaks.com/topic/41389-sessions/ 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 Link to comment https://forums.phpfreaks.com/topic/41389-sessions/#findComment-200507 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? Link to comment https://forums.phpfreaks.com/topic/41389-sessions/#findComment-200510 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. Link to comment https://forums.phpfreaks.com/topic/41389-sessions/#findComment-200511 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.