Session variables not updating

Does anyone know why I need to do a page refresh in order for my session variables to update a page?
I have a shopping cart page where I apply a discount, the discount is kept in a session variable, when it applies the page does not update unless I do a refresh. I did not show the code because it it has several includes and would fill up a few pages. Right now I am just looking for a direction to look at.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

erikTsomikSystem Architect, CF programmer Commented:
in order to update the session variable you need to redirect the page
"why I need to do a page refresh in order for my session variables to update a page?"

a session variable is set on the server side so a trip to the server is always required. It is possible to update a session var using an ajax call so it -looks- like there was no refresh but there still has to be a server hit

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
erikTsomikSystem Architect, CF programmer Commented:
usky1Author Commented:
I'll take a look at using an ajax solution.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.