I’m kinda having a dilemma as to how to pass (well more like bridge) session information to the client side from server side.
The reason why I am doing this is simply for AJAX-related interactivity.
This is an example of what the code looks like:
It works, but there are a few problems:
B) It requires the code to be echoed in EVERY PAGE.
C) A PHP Script or Class must maintain the responsibility of printing the session values.
Once again, I am aware to never ever to trust the client side data without any validation; therefore using some sort of hash checksum, the cookie data can be compared to its PHP equivalents.
Does anyone use this procedure?