Home » Developing U++ » U++ Developers corner » Skylark reaching "beta" status, first 6 chapters of tutorial available..
Re: Skylark reaching "beta" status, first 6 chapters of tutorial available.. [message #36826 is a reply to message #36825] |
Mon, 09 July 2012 20:42 |
|
mirek
Messages: 14112 Registered: November 2005
|
Ultimate Member |
|
|
zsolt wrote on Mon, 09 July 2012 13:43 |
mirek wrote on Mon, 09 July 2012 19:28 |
OK, one possible issue: User could provide some value before is is created in session and it could have been mistakingly considered a session value...
|
Yes, this can be a real danger in a large project with a lot of programmers (many of them can be very sloppy).
Don't you think, it would be more safe to separate session and post variables at least based on some configuration option?
|
Actually, I was a little bit afraid when introducing this "shared variable space", but decided to give it a try... anyway, I guess php $_REQUEST discussion applies here too (yep, cookies go there as well so we have to take some measures. Even back when introducing the operator[], the option was to differentiate by first character of id.
So http[":var"] would be session, http["@var"] cookie and http["var"] either GET or POST (I guess not need to split those, as handlers react only to GET or POST, never both). GET and POST values with ':' and '@' at the start would be explicitly disallowed (and ignored).
The reason why not simply go with some Http::GetSession is that this way, some common processing is possible (e.g. Http::Int(const char *id)).
Do you see some catch in this remake?
Mirek
|
|
|
|
|
Skylark reaching "beta" status, first 6 chapters of tutorial available..
By: mirek on Fri, 06 July 2012 17:13
|
|
|
Re: Skylark reaching "beta" status, first 6 chapters of tutorial available..
|
|
|
Re: Skylark reaching "beta" status, first 6 chapters of tutorial available..
By: mirek on Sun, 08 July 2012 20:59
|
|
|
Re: Skylark reaching "beta" status, first 6 chapters of tutorial available..
By: lectus on Sun, 08 July 2012 17:48
|
|
|
Re: Skylark reaching "beta" status, first 6 chapters of tutorial available..
By: mirek on Sun, 08 July 2012 21:01
|
|
|
Re: Skylark reaching "beta" status, first 6 chapters of tutorial available..
By: zsolt on Mon, 09 July 2012 16:03
|
|
|
Re: Skylark reaching "beta" status, first 6 chapters of tutorial available..
By: mirek on Mon, 09 July 2012 19:28
|
|
|
Re: Skylark reaching "beta" status, first 6 chapters of tutorial available..
By: zsolt on Mon, 09 July 2012 19:43
|
|
|
Re: Skylark reaching "beta" status, first 6 chapters of tutorial available..
By: mirek on Mon, 09 July 2012 20:42
|
|
|
Re: Skylark reaching "beta" status, first 6 chapters of tutorial available..
By: zsolt on Mon, 09 July 2012 21:19
|
|
|
Re: Skylark reaching "beta" status, first 6 chapters of tutorial available..
By: mirek on Mon, 09 July 2012 21:44
|
|
|
Re: Skylark reaching "beta" status, first 6 chapters of tutorial available..
By: zsolt on Mon, 09 July 2012 22:42
|
|
|
Re: Skylark reaching "beta" status, first 6 chapters of tutorial available..
By: forlano on Mon, 09 July 2012 23:08
|
|
|
Re: Skylark reaching "beta" status, first 6 chapters of tutorial available..
By: mirek on Tue, 10 July 2012 22:08
|
|
|
Re: Skylark reaching "beta" status, first 6 chapters of tutorial available..
By: lectus on Thu, 26 July 2012 22:38
|
|
|
Re: Skylark reaching "beta" status, first 6 chapters of tutorial available..
By: Alboni on Wed, 10 July 2013 16:12
|
|
|
Re: Skylark reaching "beta" status, first 6 chapters of tutorial available..
By: mirek on Thu, 11 July 2013 07:52
|
Goto Forum:
Current Time: Sun Nov 10 20:40:25 CET 2024
Total time taken to generate the page: 0.00957 seconds
|