phpretard Posted March 27, 2008 Share Posted March 27, 2008 When someone logs in the value of $_SESSION['id'] = 0 After they submit a survey form I would like to change the value to 1. Is there a simple way to do it? -Anthony Quote Link to comment https://forums.phpfreaks.com/topic/98149-changes-session-value/ Share on other sites More sharing options...
ansarka Posted March 27, 2008 Share Posted March 27, 2008 after submit change $_SESSION['id'] = 1; :) :) : : Quote Link to comment https://forums.phpfreaks.com/topic/98149-changes-session-value/#findComment-502104 Share on other sites More sharing options...
MadTechie Posted March 27, 2008 Share Posted March 27, 2008 in the php script that handles the posted data, add $_SESSION['id'] = 1; but at the START of that page (before anything else is written to the page) add <?php session_start(); ?> Quote Link to comment https://forums.phpfreaks.com/topic/98149-changes-session-value/#findComment-502106 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.