Log message #109648

# At Username Text
# Aug 7th 2008, 12:04 charun of course, my fault. Just a typo: $this->Session->write('User', $userData);
# Aug 7th 2008, 12:03 TommyO charun: ^^
# Aug 7th 2008, 12:03 jaredhoyt TommyO: you know if config() has been replaced or if can be moved inside the class?
# Aug 7th 2008, 12:03 TommyO like: $this->Session->write('User', $userData);
# Aug 7th 2008, 12:03 TommyO you need to give it a key to write to
# Aug 7th 2008, 12:03 TommyO charun: your usage of Session->write() is wrong
# Aug 7th 2008, 12:02 charun jaredhoyt: Thanks anyways. I could try to read the cookie from the controller function. Does it store the current sessionID?
# Aug 7th 2008, 12:02 jaredhoyt ACTION fixes some stuff
# Aug 7th 2008, 12:01 jaredhoyt TommyO: good to know :D
# Aug 7th 2008, 12:01 tbranyen ah good point
# Aug 7th 2008, 12:01 TommyO tbranyen: with App::import() you can use it inside, to save the overhead of the load if it isn't ever used
# Aug 7th 2008, 12:01 jaredhoyt did you instantiate the sanitize class?
# Aug 7th 2008, 12:01 tbranyen yeah i'll change the level
# Aug 7th 2008, 12:01 tbranyen not atm
# Aug 7th 2008, 12:01 jaredhoyt you may be generating an error
# Aug 7th 2008, 12:01 jaredhoyt tbranyen: is your debug > 0 ?
# Aug 7th 2008, 12:01 tbranyen like nothing on the page period weird
# Aug 7th 2008, 12:01 jaredhoyt charun: hm, sorry... i'm not experienced w/ RPC to know why the session ids would be different
# Aug 7th 2008, 12:01 tbranyen weird if i try and call any method using my sanitize object nothing is generated
# Aug 7th 2008, 12:00 jaredhoyt uses() still works but i think someone said it was being deprecated... that may be wrong though ;)
# Aug 7th 2008, 12:00 tbranyen ah okay
# Aug 7th 2008, 12:00 jaredhoyt tbranyen: outside it... but use App::import('Core', 'Sanitize') now
# Aug 7th 2008, 12:00 tbranyen and creating the actual object within the class
# Aug 7th 2008, 11:59 tbranyen I would assume outside it
# Aug 7th 2008, 11:59 charun jaredhoyt: Yes, tried that. It is different :(
# Aug 7th 2008, 11:59 tbranyen hmmm jaredhoyt issue with using sanitize, does use('sanitize') go within a controller class or outside it?
# Aug 7th 2008, 11:59 jaredhoyt charun: have you tried echoing Session->id in the controller and elsewhere to see if it matches
# Aug 7th 2008, 11:59 charun I set the cookie name in /config/core.php Configure::write('Session.cookie', 'GUA');
# Aug 7th 2008, 11:57 charun if I call $this->Session->write($userData); in a controller-function, it writes something to a NEW session, not the one which is already open for the user.
# Aug 7th 2008, 11:57 jaredhoyt but i don't know, i've never used actionscript
# Aug 7th 2008, 11:57 jaredhoyt charun: might be the session cookie name
# Aug 7th 2008, 11:55 charun Hi masters of tasty pastry. I have a problem with accessing a session when calling a cake function via RPC from a flash.swf on a webpage. Does anyone have experience with Sessions and RPC?
# Aug 7th 2008, 11:51 jaredhoyt ;)
# Aug 7th 2008, 11:51 tbranyen oh man i feel like an idiot, there is an entire section dedicated to sanitization in the manual
# Aug 7th 2008, 11:50 tbranyen As an IT student i have no idea what a manual is
# Aug 7th 2008, 11:48 jaredhoyt tbranyen: the manual is good too ;)
# Aug 7th 2008, 11:45 tbranyen I'm gonna need to spend a few days just reading the api
# Aug 7th 2008, 11:45 tbranyen ah okay sweet so its not built into the model hierarchy
# Aug 7th 2008, 11:44 teknoid tbranyen: see Sanitize class, also data is made safe for insertion autmotically
# Aug 7th 2008, 11:43 tbranyen i guess the term would be sanitation
# Aug 7th 2008, 11:38 teknoid you probably need to add more for textareas, etc.