PHP Session Variables and smarty Templates

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hello, I am having problems updating PHP session variables. I can set
them and see them using the following debug print_r($_SESSION); Once,
I start using smarty templates, I cannot modify the PHP session
variables. Does smarty tags overwrite or disable PHP session vars?

    $_SESSION["iwsUsername"] = "Brennan";

Once I hit the smarty template


The session variable is now static for the entire session:

I can no longer modify and of the PHP session variables. I am not
using any PHP header/location redirects.

Any insight would be greatly appreciated.


Re: PHP Session Variables and smarty Templates

It may be a caching issue. Try setting

Check out the response headers using Live HTTP Headers for FF:


John Peters

Quoted text here. Click to load it

Site Timeline