Invalid argument supplied for foreach() , when i use sessions

2010-07-28 Thread Tomfox Wiranata
hi everyone, i write data in a session, which works perfectly well. but when i try to loop through it with foreach the error appears "Invalid argument supplied for foreach()" i figured that only arrays can be looped. here is what i did: filling the session: $input_title = $this->data['

Re: debugging database sessions in cake 1.3.1

2010-07-17 Thread phpdeve
Hi, I have even strange issue with session database. I have exactly same configuration as mentioned here. My issue is that the sessions are stored on both /tmp and the database cake_sessions table. Any idea how to prevent storing session data in tmp folder? On Jun 22, 1:38 pm, dtemes wrote

Re: Sessions across multiple apps, same domain

2010-07-12 Thread Miles J
You should be using database sessions. On Jul 12, 12:57 am, Elavazhagan chidambaram wrote: > hi u check this file core.php > compare with ur core file > > On Mon, Jul 12, 2010 at 1:23 PM, Elavazhagan chidambaram < > > azhagancod...@gmail.com> wrote: > > > hi how

Re: Sessions across multiple apps, same domain

2010-07-12 Thread Elavazhagan chidambaram
andles authentication >> > /home/keven/app1 >> > /home/keven/app2 >> > >> > Webroot is located here: >> > >> > /var/www/login >> > /var/www/contest >> > /var/www/game >> > >> > The idea is that a user logs in, then g

Re: Sessions across multiple apps, same domain

2010-07-12 Thread Elavazhagan chidambaram
t; > The idea is that a user logs in, then goes to another app where their > > login details are supposed to be kept within session data or the $user > > object from spark plug plugin. > > > > The problem is that sessions are not being passed app to app. I've >

Re: Sessions across multiple apps, same domain

2010-07-12 Thread sophy
ome/keven/app1 > /home/keven/app2 > > Webroot is located here: > > /var/www/login > /var/www/contest > /var/www/game > > The idea is that a user logs in, then goes to another app where their > login details are supposed to be kept within session data or the $user > o

Sessions across multiple apps, same domain

2010-07-01 Thread kevenages
/login /var/www/contest /var/www/game The idea is that a user logs in, then goes to another app where their login details are supposed to be kept within session data or the $user object from spark plug plugin. The problem is that sessions are not being passed app to app. I've even tried to set a s

Re: Mixing Sessions and Cookies?

2010-06-22 Thread DragonFlyEye
Shaz, Thank you for your reply. Question, though: why is there a distinction then between Cookie and Session? Seems like they're kind of the same thing? On Jun 22, 9:10 am, Shaz wrote: > Cake cookies are session cookies. If you want to set browser cookies, > use the php setcookie() function. > >

Re: Mixing Sessions and Cookies?

2010-06-22 Thread Shaz
Cake cookies are session cookies. If you want to set browser cookies, use the php setcookie() function. http://php.net/manual/en/function.setcookie.php On Jun 21, 5:50 pm, DragonFlyEye wrote: > My cookie variables: > >         function beforeFilter() { >                 $this->Cookie->name = 'ma

Re: debugging database sessions in cake 1.3.1

2010-06-22 Thread dtemes
bump, seems that nobody is having issues with sessions stored in database? On 18 jun, 09:44, dtemes wrote: > More information about the issue, since the database session uses a > model to handle the reading/writing I inserted some lines to log data > in model.php beforeSave function. T

Re: Mixing Sessions and Cookies?

2010-06-21 Thread DragonFlyEye
My cookie variables: function beforeFilter() { $this->Cookie->name = 'mag_sess_hst'; $this->Cookie->time = 31536000; // or '1 year' $this->Cookie->path = '/'; //$this->Cookie->domain = 'localhost'; $this->Coo

Re: Mixing Sessions and Cookies?

2010-06-21 Thread DragonFlyEye
Ok, upon further diagosis, I've discovered that one of my issues had to do with the fact that I'm developing locally: because the virtual machines I was browsing these pages on were using the IP address and I'm developing internally, there was some confusion as to what the proper cookie domain shou

Mixing Sessions and Cookies?

2010-06-21 Thread DragonFlyEye
I'm a bit lost at the moment. I'm trying to use both the Cookies and the Session components in the same setting and I'm not sure, but it doesn't appear to be working correctly. What I want to be able to do is this: I want to be able to set a Session cookie for a visitor to keep track of their curr

Re: debugging database sessions in cake 1.3.1

2010-06-18 Thread dtemes
ought it could be a cahce issue, but with caching disabled I get the same wrong results. regards On 18 jun, 00:10, dtemes wrote: > I have a strange issue with sessions while using database to store > them, in some cases the session data is not being updated after a > $this->Session-&g

debugging database sessions in cake 1.3.1

2010-06-17 Thread dtemes
I have a strange issue with sessions while using database to store them, in some cases the session data is not being updated after a $this->Session->write. I put some $this-log() calls in the cake_sessions.php library file and the write function returns true but a mysql query shows the old

Re: Sessions working in one controller and not the other

2010-05-05 Thread LordZardeck
I use php On May 5, 7:15 am, LunarDraco wrote: > How do you have sessions configured. Are you using php, cake or > database sessions? > > On May 4, 2:17 pm, LordZardeck wrote: > > > > > > > Adding still doesn't help. I REALLY need to figure this out. its

Re: Sessions working in one controller and not the other

2010-05-05 Thread LunarDraco
How do you have sessions configured. Are you using php, cake or database sessions? On May 4, 2:17 pm, LordZardeck wrote: > Adding still doesn't help. I REALLY need to figure this out. its so > wierd because the sessions work when you add var $uses = array(), even > when I don'

Re: Sessions working in one controller and not the other

2010-05-04 Thread LordZardeck
Adding still doesn't help. I REALLY need to figure this out. its so wierd because the sessions work when you add var $uses = array(), even when I don't have the Session componet added! its not even in the app_controller! On May 4, 10:42 am, thatsgreat2345 wrote: > Not a clue, would

Re: Sessions working in one controller and not the other

2010-05-04 Thread thatsgreat2345
t; > the other. I can't figure out why. I am using CakePHP 1.2.5. > > > > // > > > //Does work > > > // > > > > sessions_controller.php: > > > > class SessionsController extends AppController { > > >     var $name = "Sessions

Re: Sessions working in one controller and not the other

2010-05-03 Thread LordZardeck
> > For some reason, the session handling works in one controller and not > > the other. I can't figure out why. I am using CakePHP 1.2.5. > > > // > > //Does work > > // > > > sessions_controller.php: > > > class SessionsController ext

Re: Sessions working in one controller and not the other

2010-05-03 Thread LordZardeck
ion handling works in one controller and not > > the other. I can't figure out why. I am using CakePHP 1.2.5. > > > // > > //Does work > > // > > > sessions_controller.php: > > > class SessionsController extends AppController { > >     var $

Re: Sessions working in one controller and not the other

2010-05-03 Thread LordZardeck
But the sessions controller works without it. Shouldn't the messages controller work without it also? I added it anyways, and it still didn't work. On May 3, 6:21 pm, thatsgreat2345 wrote: > Include the session component > > On May 3, 3:59 pm, LordZardeck wrote: >

Re: Sessions working in one controller and not the other

2010-05-03 Thread thatsgreat2345
> > class SessionsController extends AppController { >     var $name = "Sessions"; >     var $layout = "ajax"; >     var $uses = array(); > >     function create(){ >         if($this->Session->read('Data') == null){ >             $this-&g

Sessions working in one controller and not the other

2010-05-03 Thread LordZardeck
For some reason, the session handling works in one controller and not the other. I can't figure out why. I am using CakePHP 1.2.5. // //Does work // sessions_controller.php: class SessionsController extends AppController { var $name = "Sessions"; var $layout = "

Re: Sessions folder is getting huge

2010-04-15 Thread cricket
On Apr 15, 9:17 am, DeepJaguar wrote: > I think i use the cake one, you can see that in the core file right? > (Configure::write('Session.save', 'cake'); ) Yes, you can set that to "php", "cache", etc. > Is changing that possible harmful for users on the site? The "php" setting tells Cake to us

Re: Sessions folder is getting huge

2010-04-15 Thread DeepJaguar
I think i use the cake one, you can see that in the core file right? (Configure::write('Session.save', 'cake'); ) Is changing that possible harmful for users on the site? On Apr 9, 10:04 pm, euromark wrote: > do you use the php one? or the cake tmp/ one? > because the first is usually garbige col

Re: Database sessions in version 1.3

2010-04-14 Thread zonery
I see that there is a very friendly community to get help... thank you very much again. On 14 Nisan, 07:46, jacmoe wrote: > I checked, and running 'cake schema create Sessions' does create a > cake_sessions table in your database. > You can do this! :) > That book is actuall

Re: Database sessions in version 1.3

2010-04-13 Thread jacmoe
I checked, and running 'cake schema create Sessions' does create a cake_sessions table in your database. You can do this! :) That book is actually fairly up to date and complete. :) Beware that in two weeks time, CakePHP 1.3 will become the current stable version. So you better get used

Re: Database sessions in version 1.3

2010-04-13 Thread Jeremy Burns
ok again and advice me.. >> >>> thank you >> >>> On 13 Nisan, 14:32, Jeremy Burns wrote: >> >>>> It's in /app/config/sql/sesions.sql >> >>>> Jeremy Burns >>>> jeremybu...@me.com >> >>>> On 13 A

Re: Database sessions in version 1.3

2010-04-13 Thread zonery
> > > jeremybu...@me.com > > > > On 13 Apr 2010, at 04:52, zonery wrote: > > > > > hi all, > > > > I want to store sessions in database. > > > > in 1.3 manual (http://book.cakephp.org/view/1310/Sessions), > > > > it says "

Re: Database sessions in version 1.3

2010-04-13 Thread jacmoe
s > > jeremybu...@me.com > > > On 13 Apr 2010, at 04:52, zonery wrote: > > > > hi all, > > > I want to store sessions in database. > > > in 1.3 manual (http://book.cakephp.org/view/1310/Sessions), > > > it says "...run thedatabase sessionSQL file

Re: Database sessions in version 1.3

2010-04-13 Thread jacmoe
ma folder under  /app/config/ > > could you look again and advice me.. > > thank you > > On 13 Nisan, 14:32, Jeremy Burns wrote: > > > It's in /app/config/sql/sesions.sql > > > Jeremy Burns > > jeremybu...@me.com > > > On 13 Apr 2010, at 04:52

Re: Database sessions in version 1.3

2010-04-13 Thread zonery
advice me.. thank you On 13 Nisan, 14:32, Jeremy Burns wrote: > It's in /app/config/sql/sesions.sql > > Jeremy Burns > jeremybu...@me.com > > On 13 Apr 2010, at 04:52, zonery wrote: > > > hi all, > > I want to store sessions in database. > > in 1

Re: Database sessions in version 1.3

2010-04-13 Thread jacmoe
I submitted a change to the page in question. On Apr 13, 1:32 pm, Jeremy Burns wrote: > It's in /app/config/sql/sesions.sql > > Jeremy Burns > jeremybu...@me.com > > On 13 Apr 2010, at 04:52, zonery wrote: > > > hi all, > > I want to store session

Re: Database sessions in version 1.3

2010-04-13 Thread Jeremy Burns
It's in /app/config/sql/sesions.sql Jeremy Burns jeremybu...@me.com On 13 Apr 2010, at 04:52, zonery wrote: > hi all, > I want to store sessions in database. > in 1.3 manual (http://book.cakephp.org/view/1310/Sessions), > it says "...run the database session SQL file lo

Database sessions in version 1.3

2010-04-13 Thread zonery
hi all, I want to store sessions in database. in 1.3 manual (http://book.cakephp.org/view/1310/Sessions), it says "...run the database session SQL file located in app/ config..." but there is no database session sql file in app/config how can I create session database table (or get sch

Re: Sessions folder is getting huge

2010-04-09 Thread euromark
do you use the php one? or the cake tmp/ one? because the first is usually garbige collected automatically, the cake session folder is not, though! On 9 Apr., 19:11, Miles J wrote: > Maybe you have a lot of sessions? > > Try switching it to using a database. > > On Apr 9, 5:20

Re: Sessions folder is getting huge

2010-04-09 Thread Miles J
Maybe you have a lot of sessions? Try switching it to using a database. On Apr 9, 5:20 am, DeepJaguar wrote: > Hi all, > > I have a problem with the tmp/sessions folder. For one of my sites the > folder is 25GB already! What can be the problem? > > Best Regards, > Jeffr

Sessions folder is getting huge

2010-04-09 Thread DeepJaguar
Hi all, I have a problem with the tmp/sessions folder. For one of my sites the folder is 25GB already! What can be the problem? Best Regards, Jeffrey Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message

Re: Google Chrome Frame - Sessions

2010-02-19 Thread greg2000
I figured it out. Google Chrome Frame changes the User Agent for only some of the hits and this was screwing with my installation of Cake's session management. On Feb 18, 5:03 pm, greg2000 wrote: > I've run into a very strange problem and I am curious if anyone else > is having a similar problem.

Google Chrome Frame - Sessions

2010-02-18 Thread greg2000
I've run into a very strange problem and I am curious if anyone else is having a similar problem. If a user: * is using one of my CakePHP websites (1.1 and 1.2 on different sites) and * is using IE8 with Google ChromeFrame installed and * refreshes any page once logged in ..

Different expiry values for different sessions

2010-01-15 Thread Kareem Sabri
Hello, I'd like to have different sessions have different lifetimes. For general users I'd like the sessions to persist for days, but for Admin users I'd like the sessions to expire when the browser closes. Is this possible? Thanks in advance. Check out the new CakePHP Ques

Re: Sessions table already in the database

2009-12-31 Thread John Andersen
Call your Session something else in your CakePHP application - but in your model, define that the model uses the table "sessions", that should be the only place that the table "sessions" is used, thus hopefully not conflict with CakePHP. See http://book.cakephp.org/view

Sessions table already in the database

2009-12-30 Thread ecote
HI, Is there a way to change the default session handling? Reason: we have a database of events (conferences, speakers, attendees, etc... and, sadly, " sessions " !!). This database is used by some other applications so it would be difficult to change the table name. However, once the

Re: sharing sessions between php app domain and cake domain

2009-11-26 Thread Dave
If you look in your app/config/core.php you will see Configure::write('Security.level', 'high'); This causes cake to regenerate session id's on every request. If you change this level to medium it should stop resetting the session ID. hope that helps, Dave On Thu, Nov 26, 2009 at 2:44 AM, the

sharing sessions between php app domain and cake domain

2009-11-26 Thread thevikas
Hi All, I have used cake for about a year on a moderate level. I have most of my PHP apps outside cake while some are part of cake. Sharing same session between cake and php domains has been the hurdle to move the app into cake. I understand cookies and how different domains will implicitly NOT s

Re: No Sessions in Safari or Chrome

2009-10-09 Thread osodani
, Miles J wrote: > Try turning checkAgent to true. The session security might be killing > it. > > On Oct 9, 11:52 am, osodani wrote: > > > Hi, > > > I've read through a dozen similar threads but I can't get sessions to > > work with WebKit-based

Re: No Sessions in Safari or Chrome

2009-10-09 Thread Miles J
Try turning checkAgent to true. The session security might be killing it. On Oct 9, 11:52 am, osodani wrote: > Hi, > > I've read through a dozen similar threads but I can't get sessions to > work with WebKit-based browsers. I've tested Safari 4, Chrome, WebKit, &

No Sessions in Safari or Chrome

2009-10-09 Thread osodani
Hi, I've read through a dozen similar threads but I can't get sessions to work with WebKit-based browsers. I've tested Safari 4, Chrome, WebKit, and even the iPhone Safari. I've tested on different PCs and Macs. Firefox and IE work fine. I'm running CakePHP 1.2.5. Her

isAuthorized not called and Multiple sessions

2009-09-17 Thread Vishal
() function in there. I tried declaring the Auth component in the User class as well but no luck. I tried removing Auth component from app_controller but still same. One more thing, is it normal for cakePHP to produce multiple sessions. In my application, there is only one session but on the call

Re: Sessions and Redirect

2009-08-19 Thread Jukai
Dear All I have same problem with LS, The Session didn't save anything when redirect, it means Auth didnt work!!, i think there is some configure nedeed but i dont know what, i was waste a week for this same problem... HELP!!! best regard --~--~-~--~~~---~--~~ You

Re: Sessions and Redirect

2009-08-12 Thread Dr. Loboto
e example was wrong, but using Session->check > ('key') ?> it also returns false. It creates two sessions (entries) in > the database (cake_sessions). > > What i'm doing exactly: > > 1. User comes from an external site (eg. google.com) to an user- > protecte

Re: Sessions and Redirect

2009-08-11 Thread LS
Er... Sorry, you're right. My code example was wrong, but using Session->check ('key') ?> it also returns false. It creates two sessions (entries) in the database (cake_sessions). What i'm doing exactly: 1. User comes from an external site (eg. google.com) to a

Re: Sessions and Redirect

2009-08-11 Thread Robert P
g'); >     // exit; // <<-- with or without this, I get the error. >   } > (...) > ?> > > other file > > class TwoController extends AppController { >   function bug() { >     if ($this->Session->check('info')) { >       // This never

Sessions and Redirect

2009-08-11 Thread LS
'); $this->redirect('/two/bug'); // exit; // <<-- with or without this, I get the error. } (...) ?> other file Session->check('info')) { // This never happens! echo("working"); } } } ?> When I check the database, I see

access cakephp sessions outside of cake

2009-08-09 Thread Parris
Hi everyone, I was wondering if anyone has been able to successfully get cakephp sessions to work outside of the framework? I had seen that article in the bakery, but that didn't turn out to be very helpful. Any guidance would be much appreciated... Right now I am trying to access session

Re: Saving Sessions before entering database

2009-07-22 Thread lovettcreati...@gmail.com
ll? Use Model::getLastInsertId() > > On Wed, Jul 22, 2009 at 12:36 AM, damanlovett > wrote: > > > I'm a noob so this my be a really stupid question.  I'm trying to grab > > data and place it in sessions when a user is created.  I tried to use > > a beforeSave(

Re: Saving Sessions before entering database

2009-07-22 Thread brian
this my be a really stupid question.  I'm trying to grab > data and place it in sessions when a user is created.  I tried to use > a beforeSave() so that I can reuse the id, but the session is empty. > Please help.  Thans > > Here's my code > > function beforeSave(){

Saving Sessions before entering database

2009-07-21 Thread damanlovett
I'm a noob so this my be a really stupid question. I'm trying to grab data and place it in sessions when a user is created. I tried to use a beforeSave() so that I can reuse the id, but the session is empty. Please help. Thans Here's my code function beforeSave(){

Re: Problem Storing Sessions from Login

2009-07-12 Thread Nancy
$this->logon(); Hope that helps. On Jul 11, 7:35 pm, damanlovett wrote: > I am SO new to Cakephp, although I love it I am having problems with > my first app. I have been reading every possible article, book, and > blog about sessions, but I can't get it right. > > I am tryi

Re: Problem Storing Sessions from Login

2009-07-12 Thread GravyFace
On Sat, Jul 11, 2009 at 10:35 PM, damanlovett wrote: > > I am SO new to Cakephp, although I love it I am having problems with > my first app. I have been reading every possible article, book, and > blog about sessions, but I can't get it right. > > I am trying to store the

Re: Problem Storing Sessions from Login

2009-07-11 Thread thatsgreat2345
if you really need to. On Jul 11, 7:35 pm, damanlovett wrote: > I am SO new to Cakephp, although I love it I am having problems with > my first app. I have been reading every possible article, book, and > blog about sessions, but I can't get it right. > > I am trying to store th

Problem Storing Sessions from Login

2009-07-11 Thread damanlovett
I am SO new to Cakephp, although I love it I am having problems with my first app. I have been reading every possible article, book, and blog about sessions, but I can't get it right. I am trying to store the user's id and name in a session variable during the login process. Is ther

Re: Delete current login user sessions

2009-07-01 Thread lordG
Hi Miles, thanks, what you have said makes sense. Ok. thanks for the suggestion. ;) G --~--~-~--~~~---~--~~ 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

Re: Delete current login user sessions

2009-06-30 Thread Miles J
Your session is local and only applies to you, so the way you are suggesting would not work. You would have to save the session id to the database, and do a check to see if it changed. If it changes then destroy the session. --~--~-~--~~~---~--~~ You received this

Re: Delete current login user sessions

2009-06-30 Thread lordG
Does anyone have any feedback or comments on this? Much Appreciated. G --~--~-~--~~~---~--~~ 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 f

Delete current login user sessions

2009-06-29 Thread lordG
Hi Guys, Does anyone know of a method to delete/destroy any sessions created by a user when they "re" login? I.E. If 2 people login using the same login, the first person should get "kicked" out (session destroyed) when the second person logs in. >From looking at

Re: reading sessions!?

2009-06-17 Thread foldiman
I found this article and followed his advice. It's amazing what damage a little whitespace can do. http://dblog.com.au/web-development/cakephp-session-troubleshooting/ On Jun 16, 5:31 pm, foldiman wrote: > Correction, I'm using > > read()); ?> > > On Jun 16, 4:20 pm, foldiman wrote: > > > I ju

Re: reading sessions!?

2009-06-16 Thread foldiman
Correction, I'm using read()); ?> On Jun 16, 4:20 pm, foldiman wrote: > I just started a new CakePHP project with a new download of Cake. If I > place the following in my home.ctp in my pages directory, I see my > session. > > > > But it doesn't work on any view page that's linked to a contr

reading sessions!?

2009-06-16 Thread foldiman
I just started a new CakePHP project with a new download of Cake. If I place the following in my home.ctp in my pages directory, I see my session. But it doesn't work on any view page that's linked to a controller. For example, I have a 'cars_controller' and a 'cars' folder in the 'views' folde

Re: Sessions in Components?

2009-06-08 Thread Sanfly
Worked great, should have tried it myself before asking! Cheers Sandie On Jun 9, 8:09 am, Gwoo wrote: > add var $components = array('Session') to your UploaderComponent --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: Sessions in Components?

2009-06-08 Thread Miles J
Would it be possible if I took a look at your uploader? I recently just wrote one and am curious how others do it :p --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email t

Re: Sessions in Components?

2009-06-08 Thread Gwoo
add var $components = array('Session') to your UploaderComponent --~--~-~--~~~---~--~~ 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

Sessions in Components?

2009-06-08 Thread Sanfly
Hi Im writing a file upload component, and as part of that I want to have a file upload log. This is basically a text file I rewrite to each time a file is uploaded with a bit of data about the upload. Anyway, as part of this I want to record the person who uploaded the file. Over the rest of

Re: Configure::write('Session.start', true); does *NOT* turn sessions on but session_start() does.

2009-05-16 Thread Miles J
Put your security level to low and see what happens. On May 16, 8:33 am, Charles wrote: > I am echoing the session and nothing happens, it keeps resetting > itself. > > On May 16, 3:58 am, Miles J wrote: > > > And how do you know your sessions aren't sta

Re: Configure::write('Session.start', true); does *NOT* turn sessions on but session_start() does.

2009-05-16 Thread Charles
I am echoing the session and nothing happens, it keeps resetting itself. On May 16, 3:58 am, Miles J wrote: > And how do you know your sessions aren't started, what exactly happens? --~--~-~--~~~---~--~~ You received this message because you are subscribe

Re: Configure::write('Session.start', true); does *NOT* turn sessions on but session_start() does.

2009-05-16 Thread Miles J
And how do you know your sessions aren't started, what exactly happens? --~--~-~--~~~---~--~~ 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

Re: Configure::write('Session.start', true); does *NOT* turn sessions on but session_start() does.

2009-05-15 Thread Charles
Help? --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.co

Configure::write('Session.start', true); does *NOT* turn sessions on but session_start() does.

2009-05-14 Thread Charles
p directory. * 'database' Uses CakePHP's database sessions. * * To define a custom session handler, save it at /app/config/ .php. * Set the value of 'Session.save' to to utilize it in CakePHP. * * To use database sessions, execute the SQL file found at /app/config/

Re: Sessions lost

2009-04-09 Thread logout
In the core.php there is this section: * The preferred session handling method. Valid values: * * 'php'Uses settings defined in your php.ini. * 'cake' Saves session files in CakePHP's /tmp directory. * 'database'

Re: Sessions lost

2009-04-08 Thread Dr. Loboto
Set debug > 0 and check for errors. Check session files store path to be writable by cake. On Apr 5, 11:32 pm, "Deud'tens" wrote: >  Hello, sorry for my english, I'm french. > > I have a god damn problem with sessions of cakephp : they don't work ! > W

Sessions lost

2009-04-06 Thread Deud'tens
Hello, sorry for my english, I'm french. I have a god damn problem with sessions of cakephp : they don't work ! When I flash to another controller/action, everything is lost. I went into the core.php file and lowered everything possible and tried all the session handlers : Config

Re: How destroy sessions after close browser windows

2009-03-30 Thread Miles J
Just set the security to high in your config. That will end it. --~--~-~--~~~---~--~~ 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

Re: How destroy sessions after close browser windows

2009-03-30 Thread Martin Westin
> 2009/3/30 John Andersen > > > > > > > Ok, then I understand :) That is a scenario you can't catch, as you > > don't get any information that the user has closed the window. > > > Used timed sessions, so that if the user is inactive for more than X >

Re: How destroy sessions after close browser windows

2009-03-30 Thread Eber Freitas Dias
hronous call to a method in your app that cleans the session and then closes the window... It's an option... 2009/3/30 John Andersen > > Ok, then I understand :) That is a scenario you can't catch, as you > don't get any information that the user has closed the window.

Re: How destroy sessions after close browser windows

2009-03-30 Thread John Andersen
Ok, then I understand :) That is a scenario you can't catch, as you don't get any information that the user has closed the window. Used timed sessions, so that if the user is inactive for more than X minutes, the session becomes invalid and the user must log in again! Use session re

Re: How destroy sessions after close browser windows

2009-03-30 Thread Petr Vytlačil
tr Vytlačil wrote: > > > Hi i need destry sessions after close browser windows. I need logout > > user from admin section when he close browser windows. If now close > > browser windows and startup browser, he can go to admin se

Re: How destroy sessions after close browser windows

2009-03-30 Thread John Andersen
Use session destroy as stated in the CakePHP documentation at http://book.cakephp.org/view/404/destroy Enjoy, John On Mar 30, 11:49 am, Petr Vytlačil wrote: > Hi i need destry sessions after close browser windows. I need logout > user from admin section when he close browser windows.

How destroy sessions after close browser windows

2009-03-30 Thread Petr Vytlačil
Hi i need destry sessions after close browser windows. I need logout user from admin section when he close browser windows. If now close browser windows and startup browser, he can go to admin section. I use CakePHP 1.2. THX --~--~-~--~~~---~--~~ You received this

Re: Sessions disappearing -- load balancing problem?

2009-03-28 Thread Pablo Viojo
Are you using "sticky sessions" when balancing? (ask your system admin) Which session.save value are you using (php, database, cache)? (located on your core.php) Saludos, Pablo Viojo pvi...@gmail.com http://pviojo.net (#260 y

Sessions disappearing -- load balancing problem?

2009-03-27 Thread Aimee
Hi, I've written an application that collects users' answers to questions using sessions. It works fine most of the time, but one of our users is having problems with sessions. The sessions seems to be set correctly in the controller, but once the next form is submitted, the ses

Check Session at Login with Auth/Sessions prüfen bei Login mit Auth-Komponente

2009-03-17 Thread daThy.de
valid session exists. If yes, the old one should be deleted, would be most useful. Whether the sessions in a file or in the DB is placed I do not care, I'm looking just for a idea. Greeting daThy - wrestlegame.de Hallo zusammen, ich benötige Hilfe bei der Erweiterun

Re: search engine bots and sessions

2009-03-13 Thread majna
hey are > > crawling your site. A way to solve this is creating a list with known > > bots and their useragent strings. If a visitor visits your site check > > if it's a bot or not and if so look in your sessions table if it has > > been here before so you can reuse that sess

Re: search engine bots and sessions

2009-03-13 Thread wowfka
with known > bots and their useragent strings. If a visitor visits your site check > if it's a bot or not and if so look in your sessions table if it has > been here before so you can reuse that session. Bare in mind that this > solves the problem for most bots, however there are s

Re: search engine bots and sessions

2009-03-13 Thread wowfka
I am just tracking, currently visiting users last 30 min, so i can use session database, also increased session expirity a little. As i know cake deletes only expired sessions. On Mar 13, 12:01 pm, Braindead wrote: > Cake deletes expired entries from the session table automatically. > The

Re: search engine bots and sessions

2009-03-13 Thread WyriHaximus
Most search engine bots/crawlers don't store cookies when they are crawling your site. A way to solve this is creating a list with known bots and their useragent strings. If a visitor visits your site check if it's a bot or not and if so look in your sessions table if it has been here

Re: search engine bots and sessions

2009-03-13 Thread Braindead
address, because the two browsers don't share sessions. --~--~-~--~~~---~--~~ 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 t

search engine bots and sessions

2009-03-13 Thread wowfka
Hi, Have little prob with search engine bots :) I am storing sessions in database and also track visitors in site, with records from that database, recently i saw multiple records with same IP adress tracked it, and found that it is search engine bots, google,yahoo, etc there was many records

Re: Ajax requests destroy sessions

2009-03-03 Thread Sidney
Try changing your security level to medium from high. That worked for me and many others. Ajax and sessions are a common problem. On Mar 3, 5:43 am, jc_mich wrote: > Hi > > I'm trying to render an element after an ajax request. After the request is > successfully accepted by t

Ajax requests destroy sessions

2009-03-02 Thread jc_mich
Hi I'm trying to render an element after an ajax request. After the request is successfully accepted by the controller the session will be destroyed. Is there anyone who had the same problem? Thanks! -- View this message in context: http://www.nabble.com/Ajax-requests-destroy-ses

<    1   2   3   4   5   >