Part 3 deals with using CakePHP sessions, with just the regular php session. [http://reuben-in-rl.blogspot.com.au/2010/06/integrating-ckeditor-and-cakephp-part-3.html]
Part 4 deals with using CakePHP sessions, but with the database variety. [http://reuben-in-rl.blogspot.com.au/2010/06/integrating-ckeditor-and-cakephp-part-4.html]
Admittedly, this was all done with CakePHP 1.3, but the same principals apply for CakePHP 2.X.
On Wednesday, 12 December 2012 19:21:53 UTC+10, mebibyte wrote:
-- On Wednesday, 12 December 2012 19:21:53 UTC+10, mebibyte wrote:
Pfieuw, I found the solution.I assumed that cakephp was using the session for storing the userAgent. This is needed for searching in de cake_sessions table.But I didn't know that you can get the userAgent with this: $_SERVER['HTTP_USER_AGENT'] en then cakephp is hashing it.So, there is no session, I think it is destroyed just before loading the page because I'm using the database session configuration.No I just need to create a plugin (not that easy) so that I don't have to copy the security salt.Thanx for your comments cricket.
Op zaterdag 8 december 2012 13:16:17 UTC+1 schreef mebibyte het volgende:HeyI'm using the simogeo filemanager and I want to check if the user is authorized to acces the filemanager.
When I use the php session, I can acces the session data. But I want to use the database session in cakephp and with that I can't acces the session id for searching in my database table.So, how can I get the id which is saved in the database session?Thanx
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
No comments:
Post a Comment