Home » RADICORE development » Framework » Maintaining state (Is Radicore's use of saving state typical of all webapps?)
|
|
Re: Maintaining state [message #4817 is a reply to message #4814] |
Thu, 09 July 2015 05:49   |
AJM
Messages: 2378 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
I do not pass state in the URL as this is a MASSIVE security problem. A naughty user could change the URL and really screw things up.
I use the $_SESSION superglobal to maintain state between requests. There is a brief description at http://www.tonymarston.net/php-mysql/menuguide/appendixg.htm l
The $where variable is a string which be passed from one script to another.
The $this->sql_* variables are used to modify the SQL query which is executed in the current script.
[Updated on: Thu, 09 July 2015 05:50] Report message to a moderator
|
|
|
|
Re: Maintaining state [message #4937 is a reply to message #4910] |
Wed, 26 August 2015 21:46   |
rafs
Messages: 69 Registered: May 2015
|
Member |
|
|
I am back to this. I have read about your use of $_SESSION superglobal to pass 'state'.
What is your advice on the best way to view the state info as each new script (page) is called?
I want to see what the $where contains that is being called for the new page.
The technique I am testing (with Eclipse) is to set a breakpoint just after the standard transactions controllers at the initSession().
There under $_SESSION >> 'pages', I see my new (child) page that is being called with a few items: task_id, task_array, pattern_id, 'mypage(link1)', but I am looking for the element that I selected in the parent, 'gid' = '1', but it is not there.
[Updated on: Wed, 26 August 2015 21:59] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Fri Apr 11 00:18:41 EDT 2025
Total time taken to generate the page: 0.01301 seconds
|