Jump to content

session variable not being updated


kannu

Recommended Posts

hey guys,

 

i initialized a session variable in the following manner :-

 

<?php $_SESSION['test12'] = "<td><span id=\"custom_carat\">".$row_prod['total_carat_weight']."</span><span id=\"center_diamond1\">".$default_diamond['shape']."</span>"</td>";
echo $_SESSION['test12'];
?>

 

This works well, and the Session "Test12" is initialized.

Based on the user selection the above script is then called many times, each time the session value is updated, as I have the echo statement to check it

 

However, when I access the session variable from the next page by using the echo statement, only the first initalized value is given and not the further changed value as there might be.

 

Can you tell me please if there is something that I am missing in this.

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/151391-session-variable-not-being-updated/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.