sayedsohail Posted June 26, 2007 Share Posted June 26, 2007 Hi everyone, I got a scenario where i had to create or set a phpsession from javascript? how could i do that, any help is highly appreciated. if (document.getElementById('make').value !="") { setphp session make } I know i posted this is javascript aswell, please no grief. Quote Link to comment Share on other sites More sharing options...
r-it Posted June 26, 2007 Share Posted June 26, 2007 why don't you store the session into a variable on some php script, like this: <?php session_start(); $name = $_SESSION['the_user'];//(assuming the session has been created elsewhere) echo $name; then you use you resonseText to have it available in javascript, then you've gt it 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.