Jacbey Posted February 9, 2013 Share Posted February 9, 2013 I was wondering if it is at all possible to start a session in PHP using an onclick="" ? I cannot find anything useful on google and I seem to fail everytime I try myself Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/274273-setting-session-with-onclick-jquery/ Share on other sites More sharing options...
denno020 Posted February 9, 2013 Share Posted February 9, 2013 You would have to use AJAX. So with your onclick, call a method that fires off an AJAX request, running the PHP script on the server that would initiate a session variable. Denno Quote Link to comment https://forums.phpfreaks.com/topic/274273-setting-session-with-onclick-jquery/#findComment-1411389 Share on other sites More sharing options...
Jacbey Posted February 9, 2013 Author Share Posted February 9, 2013 Thanks muchly, that shouldn't be too hard then. Quote Link to comment https://forums.phpfreaks.com/topic/274273-setting-session-with-onclick-jquery/#findComment-1411403 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.