Log message #114955

# At Username Text
# Aug 10th 2008, 07:58 mrConfused read does the job but then the problem is taht it remains in the session, and doesn't delete it.
# Aug 10th 2008, 07:58 mrConfused i want to be able to read it and assign the contents to a variable that i can traverse.
# Aug 10th 2008, 07:58 mrConfused i don't want an echo.
# Aug 10th 2008, 07:57 mrConfused when you call the flash method, it automatically echos...
# Aug 10th 2008, 07:57 mrConfused kalileo yah but you don't understand my situation.
# Aug 10th 2008, 07:56 kalileo mrConfused: did you see that there is a method flash() -and- a method read() ?
# Aug 10th 2008, 07:54 Tosak I'll give it a try, thanks
# Aug 10th 2008, 07:54 mrConfused or 3
# Aug 10th 2008, 07:54 mrConfused Tosak set debug to 2
# Aug 10th 2008, 07:54 Maniaman Tosak: set debug to 2
# Aug 10th 2008, 07:54 mrConfused the session helper is limited ...
# Aug 10th 2008, 07:53 Tosak For some reason my data isn't being saved, and I have no clue why it suddenly broke.. It's data from a form to a db. Any ideas for debugging?
# Aug 10th 2008, 07:53 mrConfused kalileo yes i have...
# Aug 10th 2008, 07:50 kalileo flash is just one method there
# Aug 10th 2008, 07:50 kalileo mrConfused: have you looked at the other possibilities to use sessions?
# Aug 10th 2008, 07:50 mrConfused for strings its nice... but what if i want more ?
# Aug 10th 2008, 07:49 kalileo mrConfused: I think flash is supposed to do exactly that, to echo the string
# Aug 10th 2008, 07:49 kalileo ACTION is using $this->Session->setFlash() for strings only an it's working fine
# Aug 10th 2008, 07:48 kalileo what a pity, it's gone
# Aug 10th 2008, 07:47 mrConfused maybe every1 is still sleepin
# Aug 10th 2008, 07:46 mrConfused i'd like to do session->flash but that does an automatic echo and i need to capture the contents and loop through to create my ordered lists...
# Aug 10th 2008, 07:45 mrConfused i could write over it with an empty value.. but thats lame
# Aug 10th 2008, 07:45 mrConfused what i noticed is that setFlash only takes a string as a parameter.... if i want to pass it an array and then read it in my view like : session->read("Message.msite")... it works, but it still remains in the session and theres no remove function. :-(
# Aug 10th 2008, 07:43 mrConfused any1 using $this->Session->setFlash() ?
# Aug 10th 2008, 07:43 mrConfused hello
# Aug 10th 2008, 07:35 kaotisch ah ok thx, now its working :)
# Aug 10th 2008, 07:34 lqdice__ its the PHP_SESSID or w/e
# Aug 10th 2008, 07:34 lqdice__ yeah the session->id() var is changed everytime
# Aug 10th 2008, 07:31 kaotisch ok... setting security lvl to medium and session mgmt to cake seems to solve the problem... anyone knows whats ment by "CakePHP session IDs are also regenerated between requests if 'Security.level is set to 'high'" ?
# Aug 10th 2008, 07:23 kalileo ACTION thinks that Firefox 3 indeed has a caching problem
# Aug 10th 2008, 07:23 kaotisch seems like i have to debug that on my own, thanks for your advise Iqdice!
# Aug 10th 2008, 07:22 kaotisch while in firefox i stay logged in and just get redirected to the login screen randomly on certain actions
# Aug 10th 2008, 07:21 kalileo paramS: that's the magic of cakePHP, you will find a lot more of these powerful ways to get your app developed fast
# Aug 10th 2008, 07:21 kaotisch yeah i should do that... but... now i found out in IE i can log in, get redirected to the action i want, it says im logged in (displaying the username from auth->user()), and if I reload now (just pressing refresh) i get redirected back to login screen
# Aug 10th 2008, 07:19 lqdice__ hm im not sure.. i would try to put some debug messages to see if the session still exists at that page then you can at least narrow down whether its the session or auth
# Aug 10th 2008, 07:18 kaotisch 8640 and sec lvl high so it should be (24*60*60)
# Aug 10th 2008, 07:17 lqdice__ whats your session timeout set to ?
# Aug 10th 2008, 07:17 kaotisch Iqdice, Its really strange... i open an javascript window with an i frame that loads a view to an action (for example /hotels/list). Everything fine. I close the window and open it again, still it loads fine. A third time it sends me to the login page. The fourth time i close and open again, it loads the page as wanted!
# Aug 10th 2008, 07:15 lqdice__ kaotisch: well if the ajax call doesnt pass the auth then its not gonna allow it to go to page
# Aug 10th 2008, 07:15 paramS i am newbie here , i declared associations in my model but didnt knew that i can use it the way you just mentioned ... now i have modified my code to $this->MusicAlbum->MusicSong->findAllbyAlbumId($id) ... and its working :)
# Aug 10th 2008, 07:15 kjell is there any tutorial on how to finalize/prepare CakePHP apps for production/release? Especially with notes about caching practices with 1.2.