delickate Posted May 19, 2008 Share Posted May 19, 2008 hi, i'm using session. its value changes on each refresh. i need to also store its value that was stored last time in it. any one know how to? Link to comment https://forums.phpfreaks.com/topic/106309-how-to-gain-last-value-of-session/ Share on other sites More sharing options...
947740 Posted May 19, 2008 Share Posted May 19, 2008 Just make a second variable with the old value. Link to comment https://forums.phpfreaks.com/topic/106309-how-to-gain-last-value-of-session/#findComment-544799 Share on other sites More sharing options...
BlueSkyIS Posted May 19, 2008 Share Posted May 19, 2008 can we see code? it sounds like you're leaving out session_start() at the top of each page. Link to comment https://forums.phpfreaks.com/topic/106309-how-to-gain-last-value-of-session/#findComment-544813 Share on other sites More sharing options...
947740 Posted May 19, 2008 Share Posted May 19, 2008 I think he is saying he changes the value every time the page loads. Link to comment https://forums.phpfreaks.com/topic/106309-how-to-gain-last-value-of-session/#findComment-544815 Share on other sites More sharing options...
PFMaBiSmAd Posted May 19, 2008 Share Posted May 19, 2008 Just make the session variable an array and add a new array element with the new value. If you give a specific example, someone can give a specific way of doing what you are attempting. Link to comment https://forums.phpfreaks.com/topic/106309-how-to-gain-last-value-of-session/#findComment-544999 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.