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 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; :) :) : : 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(); ?> Link to comment https://forums.phpfreaks.com/topic/98149-changes-session-value/#findComment-502106 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.