Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

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 Go to previous messageGo to previous message
AJM is currently offline  AJM
Messages: 2350
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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: pdf.styles.inc
Next Topic: Task ID/Script ID
Goto Forum:
  


Current Time: Tue Jun 25 20:00:51 EDT 2024

Total time taken to generate the page: 0.03873 seconds