Hi,
in a PHP site I am building, I use a Prototype AJAX call to address some other php page. This called php page needs a variable that lives as a SESSION var on the first page (in the sense that it's used multiple times throughout that page anyway).
It's more curiosity than anything else but: which of both ways to pass our variable is preferable, if any:
- on the called page, start the session and get the var needed from there, or
- in the AJAX call, pass the session var on as a POST parameter
So, I am curious if there is a higher 'cost' to passing a POST var between pages, versus getting the var from the session (adding session_start() etc).