Forums / Contribution-Writing Guidelines / messageStack question

messageStack question

Started by tlahtine on 28 Feb 2011, 11:45 AM · Views: 2,758

Results 1 to 2 of 2
28 Feb 2011, 11:45 AM
#1
tlahtine avatar

tlahtine

New Zenner

Join Date:
Jul 2010
Posts:
36
Plugin Contributions:
0

messageStack question

What is the difference between

add

and

add_session

?

28 Feb 2011, 10:46 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: messageStack question

"add" adds it for the current page display
"add_session" adds it for the session, which allows the message to survive a page refresh such as a zen_redirect() call.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.