Re: Sessions Lost Oauth Debug Kit

2014-06-17 Thread Justin Harrison
On Tuesday, June 17, 2014 7:43:25 PM UTC+12, Justin Harrison wrote: Hi Cake 2.4 I have a very strange problem and I am lost even though I have been working with Cake a number of years. I have an app that I am integrating with XERO (An online accounting app) using OAuth. Xero

Re: Sessions expiring when they should not

2012-09-27 Thread Chris Cinelli
BTW, another problem of setting the cookie in 6 hours is that if the user has a clock that is not synced (i.e. more than 6 hours ahead), the browser will expire the session cookie and the user cannot stay logged in. Best, Chris On Tue, Sep 4, 2012 at 3:07 PM, Chris Cinelli

Re: Sessions expiring when they should not

2012-09-04 Thread Chris Cinelli
Anybody that know at least what it is the expected behavior? Is it normal that the CAKEPHP cookie has 6h expiration after login and never get updated? Best, Chris On Fri, Aug 31, 2012 at 2:20 PM, Chris Cinelli chris.cine...@formativelearning.com wrote: We are using CakePHP 2.2.1 on Ubuntu

Re: Sessions expiring when they should not

2012-09-04 Thread Chris Cinelli
It looks like the code is in CakeSession.php I think I solved the cookie expiration problem with this in the core.php: Configure::write('Session', array( 'defaults' = 'php', 'cookieTimeout' = 0, //Lives until the browser is closed. 'checkAgent' = false //To fix a

Re: Sessions working on Local dev but not on server

2011-10-12 Thread JTiki
I resolved the problem. Whatever the issue was it stopped when I updated the /cake folder on the server. On Oct 10, 10:22 pm, JTiki jeremyt...@gmail.com wrote: I've recently been working on a project for a client. Its a simple E- Commerce site and I decided to use Sessions for the cart. I

Re: Sessions working on Local dev but not on server

2011-10-11 Thread flo.kl...@googlemail.com
Have you checked the db or filesystem if the session data is stored? You also have to have cookies enabled, othetwise the session cant be tracked. JTiki jeremyt...@gmail.com schrieb: I've recently been working on a project for a client. Its a simple E- Commerce site and I decided to use

Re: Sessions working on Local dev but not on server

2011-10-11 Thread JTiki
How can i check? On Oct 11, 3:38 am, flo.kl...@googlemail.com flo.kl...@googlemail.com wrote: Have you checked the db or filesystem if the session data is stored? You also have to have cookies enabled, othetwise the session cant be tracked. JTiki jeremyt...@gmail.com schrieb: I've recently

Re: Sessions Best Practice Question

2011-09-18 Thread WebbedIT
Using the session data is fine, but no need to put it as a hidden field, in fact that's a bad idea as anyone could look at source and see the users id or worse change their user id value with FireBug and add items to another users account. Just inject the user_id into $this-data in the controller

Re: Sessions expiring with `Security.level` set to low and the `Session.timeout` set to 12000

2011-04-30 Thread Jeremy Burns | Class Outfit
There's not much info to go on here. Presumably you are using the Auth component and the user is logged in? If so, is the action she is trying to access allowed? Look in $this-Auth-allow in the controller (or app_controller is allowed actions have been set there). Jeremy Burns Class Outfit

Re: Sessions expiring with `Security.level` set to low and the `Session.timeout` set to 12000

2011-04-30 Thread Dave
Have you set it so CakePHP controls your sessions? The default is PHP, and the session timeout is controlled in the PhP.ini for that one. It took me a long time to work this one out! On Apr 30, 4:15 am, mattalexx mattal...@gmail.com wrote: My client is complaining that she posts a form and gets

Re: Sessions and http/https

2010-10-25 Thread dtemes
Thats another option, and by doing that you don't have to touch the core code, I will take a look at it before upgrading to 1.3.5... On 24 oct, 14:23, odd fihr87364hjkfhdjf6374hfz7z3h7...@trash- mail.com wrote: dtemes schrieb: I tryed with a custom save handler, but then i moved to database

Re: Sessions and http/https

2010-10-24 Thread odd
dtemes schrieb: I tryed with a custom save handler, but then i moved to database driver sessions, so finally I decided to touch the cake core code and set session.cookie_secure to 0, I am not really fond of this kind of solutions and would prefer a way to set it up from a config file without

Re: Sessions and http/https

2010-10-23 Thread odd
Maybe the session.cookie_secure option is set to true/1 by default in your PHP configuration (see php.ini), so uncommenting that line in cakes session class wont have any effect. Or maybe you have some PHP extension installed that automatically chooses to secure the cookie. Instead of

Re: Sessions and http/https

2010-10-23 Thread dtemes
I tryed with a custom save handler, but then i moved to database driver sessions, so finally I decided to touch the cake core code and set session.cookie_secure to 0, I am not really fond of this kind of solutions and would prefer a way to set it up from a config file without having to change the

Re: Sessions across multiple apps, same domain

2010-07-12 Thread sophy
Me too On Jul 1, 4:14 am, kevenages kevena...@gmail.com wrote: I'm fairly new to cake, but an experienced PHP developer.  I have a production setup of cake.  It looks as follows: /home/keven/cake1.3 - This contains the 'spark_plug' plugin, which handles authentication /home/keven/app1

Re: Sessions across multiple apps, same domain

2010-07-12 Thread Elavazhagan chidambaram
hi how can i help you? On Mon, Jul 12, 2010 at 1:18 PM, sophy sophy.p...@gmail.com wrote: Me too On Jul 1, 4:14 am, kevenages kevena...@gmail.com wrote: I'm fairly new to cake, but an experienced PHP developer. I have a production setup of cake. It looks as follows:

Re: Sessions across multiple apps, same domain

2010-07-12 Thread Elavazhagan chidambaram
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 can i help you? On Mon, Jul 12, 2010 at 1:18 PM, sophy sophy.p...@gmail.com wrote: Me too On Jul 1, 4:14 am, kevenages

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 azhagancod...@gmail.com 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 can i help you? On

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 s...@blackfireweb.com 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

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 mdc...@gmail.com wrote: How do you have sessions configured. Are you using php, cake or database sessions? On May 4, 2:17 pm, LordZardeck s...@blackfireweb.com wrote: Adding still doesn't help. I REALLY need to figure this out. its so wierd

Re: Sessions working in one controller and not the other

2010-05-04 Thread thatsgreat2345
Not a clue, would have to look into the core for that. But either way just add var $components = array('Session'); to both of them. On May 3, 7:21 pm, LordZardeck s...@blackfireweb.com wrote: Ok, I found out that the problem arises when I use a model. When I set the $uses varibale to an empty

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 thatsgreat2...@gmail.com wrote: Not a

Re: Sessions working in one controller and not the other

2010-05-03 Thread thatsgreat2345
Include the session component On May 3, 3:59 pm, LordZardeck s...@blackfireweb.com wrote: 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

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 thatsgreat2...@gmail.com wrote: Include the session component On May 3, 3:59 pm, LordZardeck

Re: Sessions working in one controller and not the other

2010-05-03 Thread LordZardeck
Also, shouldn't there be an error if I try to use the Session component when it isn't included? On May 3, 6:21 pm, thatsgreat2345 thatsgreat2...@gmail.com wrote: Include the session component On May 3, 3:59 pm, LordZardeck s...@blackfireweb.com wrote: For some reason, the session

Re: Sessions working in one controller and not the other

2010-05-03 Thread LordZardeck
Ok, I found out that the problem arises when I use a model. When I set the $uses varibale to an empty array, it works. What would cause this? On May 3, 6:21 pm, thatsgreat2345 thatsgreat2...@gmail.com wrote: Include the session component On May 3, 3:59 pm, LordZardeck s...@blackfireweb.com

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 dereurom...@googlemail.com wrote: do you use the php one? or the cake tmp/ one? because the

Re: Sessions folder is getting huge

2010-04-15 Thread cricket
On Apr 15, 9:17 am, DeepJaguar goo...@jeffreydelange.nl 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

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 goo...@jeffreydelange.nl 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, Jeffrey

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 mileswjohn...@gmail.com wrote: Maybe you have a lot of sessions? Try switching it to using a database. On Apr 9, 5:20 

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

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 --~--~-~--~~~---~--~~

Re: Sessions and Redirect

2009-08-13 Thread Dr. Loboto
Try first retrieve your saved data from session in login action, then do login, and on success write your data back to session (maybe on fail too - don't know). Looks like session is re-created on login. On Aug 12, 5:03 am, LS lsmo...@gmail.com wrote: Er... Sorry, you're right. My code

Re: Sessions and Redirect

2009-08-11 Thread Robert P
In TwoController::bug() your call to SessionComponent seems nonsensical. Looking at what you are trying to do it should either be $this-Session-check('key') which should return TRUE since you set this value in OneController::start(), or ($this-Session-read('key') == 'info') which should also

Re: Sessions and Redirect

2009-08-11 Thread LS
Er... Sorry, you're right. My code example was wrong, but using ?php $this-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- protected page

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

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 to

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 gwoo.cake...@gmail.com wrote: add var $components = array('Session') to your UploaderComponent --~--~-~--~~~---~--~~ You received this message because you are

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' Uses CakePHP's database sessions. * *

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 deudt...@gmail.com wrote:  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

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 creciendo!)

Re: Sessions not writing whole string

2009-01-23 Thread RoVo
Hi gkc, I am writing the user role to the the session with $this-Session-write('User.role',$this-$dbuser['User'] ['role']). Are you sure, that ,$this-$dbuser['User']['role'] is a string? Try like this: $this-Session-write('User.role', (string)$this-$dbuser['User'] ['role']); Hope that helps

Re: Sessions, phpThumb, SwfUpload, Cake 1.2

2009-01-12 Thread graham
Hey, If you are overwriting your $components variable for that controller, try adding in the Session component. I've got the feeling you'll want to do: var $components = array('Thumb', 'SwfUpload', 'Session'); Cheers, Graham On Mon, 12 Jan 2009 12:43:45 -0800 (PST), Parris

Re: Sessions, phpThumb, SwfUpload, Cake 1.2

2009-01-12 Thread Parris
Graham, Thanks for the response; however, that did not fix the situation. I know the session is dead because when I look at the login area it tells me to log in. The strange thing is that when i go to a different page the session is alive again. It seems that the session just temporarily goes

Re: Sessions, phpThumb, SwfUpload, Cake 1.2

2009-01-12 Thread Parris
I am happy to report that the iframe work around did work; however, it did cause a significant amount of grief! There is a security hole now. I could solve it with some round about magic I suppose. Possibly manually creating some sort of checking mechanism.

Re: Sessions lost due to .htaccess and AJAX

2008-10-16 Thread [EMAIL PROTECTED]
here is my directory structure: www.domain.com/ 1_00/ app/ views/ root/ login.thtml projects/ new.thtml If i create a Session variable in root controller, i cant see it outside. If i create a

Re: Sessions lost due to .htaccess and AJAX

2008-10-16 Thread [EMAIL PROTECTED]
*If I remove the htaccess, everything works. On Oct 16, 6:26 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: here is my directory structure:www.domain.com/    1_00/        app/             views/                  root/                         login.thtml                  projects/        

Re: Sessions Weirdness

2008-05-04 Thread Sam Sherlock
have you emptied the files (leaving folders) in the tmp dir? 2008/5/4 MikeK [EMAIL PROTECTED]: We used to have our cake app running in a subdir off our public_html called foo. So all cake paths were http://mysite.com/foo/controller/action/ We moved the app to the root directory and

Re: sessions in cake php

2008-02-11 Thread AD7six
On Feb 11, 7:52 am, abiram [EMAIL PROTECTED] wrote: Hi iam abi in my project sessions are not inserted in field what i do ? You could explain show code show an error message all of the above If nobody knows what you mean (and it's extremely unlikely with a 9 word description) they are

Re: Sessions, Webserivce and Ajax

2008-02-01 Thread lordG
Hi Guys, This discussion has not been resolved yet. Could someone elaborate on the issue being experienced. For example, possible an reason why ajax sessions which are seen as bare === 1, cause the session not to start. Thanks, Greg On Jan 18, 12:04 pm, lordG [EMAIL PROTECTED] wrote: Could

Re: sessions being dropped on redirect or whenever i call a new page

2008-01-22 Thread Gráinne O'Neill
Hi everyone, Just an update I deleted the php code at the beginning of default.ctp and it works. ugh... grainne On Jan 17, 2008 12:39 PM, BravoFoxtrot [EMAIL PROTECTED] wrote: I found the problem with my code using 1.2 beta. There was a destroy('Menu'); method that was called. The

Re: Sessions, redirects and setFlash

2008-01-21 Thread Mr-Yellow
http://au2.php.net/session_write_close The discussion here seems to indicate a PHP problem of some kind on some systems. or Some missing stuff in cake to garbage collect for all situations? or Well my problem seems to point elsewhere.. __start in setFlash? I encounter the problem with 1.2 +

Re: Sessions, redirects and setFlash

2008-01-21 Thread Mr-Yellow
debug(compact('message', 'layout', 'params')); Array ( [message] = foobar [layout] = default [params] = Array ( ) ) That's the debug from the compact that goes into the write inside setFlash. -Ben --~--~-~--~~~---~--~~ You received

Re: Sessions, redirects and setFlash

2008-01-21 Thread Mr-Yellow
Ok I've been through it from top to bottom on the writing side of things, sessions, flash code etc. Seems that there is something cleaning up the message value before it gets to the session helper $session-flash(); Before the view (debug($_SESSION) at the top and no message). the message is

Re: Sessions, redirects and setFlash

2008-01-21 Thread Mr-Yellow
Ok got it on my end.. Hopefully this can help some others. Problem is in the example code for DAuth user login controller. $this-DAuth-newSalt(); $this-Session-setFlash($error); This resets the message all the time with a blank var ($error is blank unless there has been one) Mod to

Re: Sessions, Webserivce and Ajax

2008-01-19 Thread lordG
Nate, Could you elaborate on this? On Jan 17, 5:42 pm, nate [EMAIL PROTECTED] wrote: Dude, you're confusing some very unrelated things. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to

Re: Sessions, Webserivce and Ajax

2008-01-18 Thread lordG
Could you elaborate on this? Which unrelated things? I traced the issue to the __start function of the Session Component. function __start(){ if ($this-__started === false) { if ($this-__bare === 0) { if (!$this-id() parent::start()) {

Re: Sessions, Webserivce and Ajax

2008-01-17 Thread Chris Hartjes
On Jan 17, 2008 6:37 AM, lordG [EMAIL PROTECTED] wrote: Hi Guys, Does anyone know why the webservices or ajax calls have not been maintained across sessions? Will they be, or am I missing something? I believe this is related to previous discussions about the user agent being different for

Re: sessions being dropped on redirect or whenever i call a new page

2008-01-17 Thread BravoFoxtrot
I found the problem with my code using 1.2 beta. There was a destroy('Menu'); method that was called. The intent was to only delete part of the session that referred to the menu. I replaced this with delete('Menu'); and it works. I have no idea how this working in 1.2 pre beta but it did...

Re: Sessions, Webserivce and Ajax

2008-01-17 Thread lordG
Hi Guys, Does anyone know why the webservices or ajax calls have not been maintained across sessions? Will they be, or am I missing something? Thanks, Greg --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

Re: Sessions, Webserivce and Ajax

2008-01-17 Thread lordG
Hey Chris, Thanks for the input. I did review that, but could not find valid cause that it was that. The cake Route class if it finds that the url is Ajax, sets the $params['bare'] value to 1. As a result, the session component when checking if it should start the session checks if

Re: sessions being dropped on redirect or whenever i call a new page

2008-01-16 Thread BravoFoxtrot
Has anyone else had this problem? Or more importantly, has anyone solved this problem? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com

Re: sessions being dropped on redirect or whenever i call a new page

2008-01-16 Thread [EMAIL PROTECTED]
I've had session dropping problems with images and request action, I found setting your security level to low in /app/config/core.php will help. Upgrading to the 1.2 beta seemed to fix my problems at high security Dave On Jan 16, 7:36 am, BravoFoxtrot [EMAIL PROTECTED] wrote: Has anyone else

Re: sessions being dropped on redirect or whenever i call a new page

2008-01-16 Thread alex.tomes
I also have problems with this in 1.2 beta but I'm thinking it's because I'm setting the session from an ajax call, that's the last thing I've changed to see if it works. in 1.2 alpha it worked great, not it doesn't anymore :*( --~--~-~--~~~---~--~~ You received

Re: sessions being dropped on redirect or whenever i call a new page

2008-01-16 Thread Gráinne O'Neill
I have mine low and 1.2 beta - I have no ajax and no images. i think the only thing left for me to do is start over and slowly plug things back in. i promise though if i figure out what this is i'll post to the list. in solidarity, grainne On Jan 16, 2008 10:37 AM, alex.tomes [EMAIL

Re: Sessions, redirects and setFlash

2008-01-15 Thread lordG
I mean wouldn't On Jan 15, 11:05 am, lordG [EMAIL PROTECTED] wrote: Ok, yeah, the print_r would work as the session has not been started yet. However, there does appear to be a difference between when sessions start for normal requests and ajax requests.

Re: Sessions, redirects and setFlash

2008-01-15 Thread lordG
Ok, yeah, the print_r would work as the session has not been started yet. However, there does appear to be a difference between when sessions start for normal requests and ajax requests. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Sessions, redirects and setFlash

2008-01-15 Thread lordG
Ok, traced it down to the bare variable and these lines in the session component: 00295 function __start(){ 00296 if ($this-__started === false) { 00297 if ($this-__bare === 0) { 00298 if (!$this-id() parent::start()) { 00299

Re: Sessions, redirects and setFlash

2008-01-15 Thread lordG
Does anyone have any further suggestions on this? I cake 1.1 my ajax calls would work 100% with a session security set to medium. With Cake 1.2 however they are no longer working. It seems to have something to do with the $_SESSION array being undefined when the response is received. Shouldn't

Re: Sessions, redirects and setFlash

2008-01-15 Thread lordG
ok... does anyone know why the following the the router are being deprecated? 00503 /** 00504 * Deprecated 00505 * 00506 */ 00507 $_this-connect('/bare/:controller/:action/*', array('bare' = '1')); 00508

Re: Sessions, redirects and setFlash

2008-01-14 Thread lordG
Hey Chris, yeah I had a similar problem before with 1.1 and did then and now downscaled the security to medium. What is the difference between the 3 levels though, other than the timeout scale time? Chris Hartjes wrote: On Jan 13, 2008 6:24 PM, lordG [EMAIL PROTECTED] wrote: Hi guys,

Re: sessions being dropped on redirect or whenever i call a new page

2008-01-14 Thread wirtsi
Are you using IE? It silently drops the session if the hostname contains an underscore took me ages to find out why project_beta.domain.com wouldn't work ... wirtsi On 13 Jan., 15:50, Grainne [EMAIL PROTECTED] wrote: Hi, Hope you are all having enjoyable weekends... I'm certain I'm

Re: sessions being dropped on redirect or whenever i call a new page

2008-01-14 Thread djiize
there was a ticket about session regenerated for img in the page I didn't remind if it was fixed before or after the beta maybe you should try with a newer SVN code but as precedent advice said, check before if there's undescore in your localhost or subdomain. On 14 jan, 12:43, wirtsi [EMAIL

Re: sessions being dropped on redirect or whenever i call a new page

2008-01-14 Thread candesprojects
Great tip. I was search for an answer also. Tks, Cristian On Jan 14, 3:09 pm, djiize [EMAIL PROTECTED] wrote: there was a ticket about session regenerated for img in the page I didn't remind if it was fixed before or after the beta maybe you should try with a newer SVN code but as precedent

Re: sessions being dropped on redirect or whenever i call a new page

2008-01-14 Thread Gráinne O'Neill
thanks so much for your help no underscore - i'm using firefox on windows/apache i think might try the latest code and slowly putting elements of my project in until it works/doesn't work That underscore was a great tip though. grainne On Jan 14, 2008 10:04 AM, candesprojects [EMAIL

Re: Sessions, redirects and setFlash

2008-01-13 Thread Gráinne O'Neill
i'm having the same problem. (except minus the flash) ugh... On Jan 13, 2008 5:24 PM, lordG [EMAIL PROTECTED] wrote: Hi guys, I'm experiencing a problem with the redirects when I destroy the session, set a flash message and then redirect. When it gets to the redirect page, the flash no

Re: Sessions, redirects and setFlash

2008-01-13 Thread Chris Hartjes
On Jan 13, 2008 6:24 PM, lordG [EMAIL PROTECTED] wrote: Hi guys, I'm experiencing a problem with the redirects when I destroy the session, set a flash message and then redirect. When it gets to the redirect page, the flash no longer exists and the session is clean of any custom session

Re: Sessions Issue

2007-05-30 Thread Chris Hartjes
On 5/29/07, Ketan Patel [EMAIL PROTECTED] wrote: Hi Chris, The debug is set to 2. The set up is WAMP where I experience this issue. However, just to make sure that this happens on Linux box or not, I booted into Linux and it works fine in linux. So I don't know if its CakePHP issue or its

Re: Sessions Issue

2007-05-30 Thread djiize
I had an issue like that with WAMP, it was due to an underscore in the subdomains and the session didn't fix. Maybe not your case, but I must told you in case of ;) On 30 mai, 14:51, Chris Hartjes [EMAIL PROTECTED] wrote: On 5/29/07, Ketan Patel [EMAIL PROTECTED] wrote: Hi Chris, The

Re: Sessions Issue

2007-05-29 Thread Chris Hartjes
On 5/29/07, Ketan Patel [EMAIL PROTECTED] wrote: When the form is posted, in expected input, I am not able to see the session variable alpha which I had set during the intial view. Can someone point me in right direction what's wrong? I know that session variable is set because when I look

Re: Sessions Issue

2007-05-29 Thread Ketan Patel
Hi Chris, The debug is set to 2. The set up is WAMP where I experience this issue. However, just to make sure that this happens on Linux box or not, I booted into Linux and it works fine in linux. So I don't know if its CakePHP issue or its WAMP configuration issue. Let me know. Ketan On May

Re: Sessions on production server with cookies disabled

2007-05-22 Thread f.
Well, I'll answer my question... Since I didn't want to hack the core files, i put this in my app_controller: function redirect($url, $status = null, $exit = false) { if (!empty($_REQUEST[CAKE_SESSION_COOKIE])) { $url .= (strpos($url, '?') !== false) ? 'amp;':'?';

Re: Sessions not carying over?

2007-05-02 Thread Enchy
Ok this is my login page: /admin/index.php/users/login When I redirect to: /admin/index.php/users/index I can print the session onscreen, so this means its working. But the moment I goto /admin/ The root of the site then the session does not appear. Anybody got a solution for this?

Re: Sessions not carying over?

2007-05-02 Thread Enchy
I finally got it working. Cakephp was deleting my session everytime I went to login page somehow. I dont have delete session in the controller class UsersController extends AppController { var $name = 'Users'; var $scaffold; function index() { } function login()

Re: Sessions not carying over?

2007-05-01 Thread Enchy
Ok here is my problem. This is my login controller: if($success) { $this-Session-write('User', $someone['User']); $test = $this-Session-check('User'); $this-Session-setFlash(bs $test); //$this-redirect('../');

Re: sessions in database

2007-04-05 Thread majna
or $result = eval(return \$_SESSION;); pr($result); On Apr 4, 11:49 am, jyrgen [EMAIL PROTECTED] wrote: here's a solution i found on php.net. it's definitely not smart, but works ok. $temp = mysql_query('SELECT * FROM sessions'); while ($row = mysql_fetch_array($temp)){

Re: sessions in database

2007-04-04 Thread jyrgen
here's a solution i found on php.net. it's definitely not smart, but works ok. $temp = mysql_query('SELECT * FROM sessions'); while ($row = mysql_fetch_array($temp)){ $variables = array( ); $a = preg_split( /(\w+)\|/, $row['data'], -1, PREG_SPLIT_NO_EMPTY |

Re: Sessions

2007-04-04 Thread Olwen Williams
Perhaps I should explain more. I have index.php outputting the session id at the end with this code: echo session id is .session_id(); Before I log in I can call up different screens and the session id stays the same. Then I log in and the session id is still the same, but I when I go to a

Re: sessions in database

2007-04-04 Thread majna
There is $db-value(time()) wich fetch value from data field in session table... from libs/session.php: $db = ConnectionManager::getDataSource('default'); $table = $db-fullTableName(CAKE_SESSION_TABLE); $db-execute(DELETE FROM . $db-name($table) . WHERE . $db- name($table.'.expires') . .

Re: sessions in database

2007-04-04 Thread jyrgen
Hi Majna, it's not that i want to check for expiration, but rather if a user is already logged in. (see above) i cannot simply test for sth. like $this-Session-read('logged_in') because this refers to the current session, which i am just about to construct... therefore i had to search all

Re: sessions in cake db _gc

2007-03-26 Thread jyrgen
hello all, can anybody help please ? thanks, jyrgen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group,

Re: sessions in cake db _gc

2007-03-24 Thread jyrgen
hi, thanks for pointing my to this, you're right, there seems to be no solution. i wouldn't mind writing a custom handler, which erases expired session entries. but i need something to start with... still i'm confused about the fact, that the cake session handling behaves different on

Re: sessions in cake db _gc

2007-03-23 Thread jyrgen
Hi, i've set this define('CAKE_SESSION_SAVE', 'database'); in app/config/core.php (there is no file config.php in app/config/ ) , which made me believe that the entirely session handling is leftover to cake. the oldest session is almost two weeks old... but never on my local server

Re: sessions in cake db _gc

2007-03-23 Thread majna
There is thread : http://groups.google.com/group/cake-php/browse_thread/thread/2a6120727e5e7745/5718c2fec805b063?lnk=gstq=sessionrnum=6#5718c2fec805b063 read this, i have same problem, but there is no solution. :( is it cake bug? On Mar 23, 12:18 pm, jyrgen [EMAIL PROTECTED] wrote: Hi,

Re: sessions in cake db _gc

2007-03-22 Thread Chris Lamb
jyrgen [EMAIL PROTECTED] wrote: on my local machine i find that expired session entries are deleted automatically. on a remote webserver there are more than 40 entries.. possibly the cake garbage collection is not being called. 40 entries is bad? Are they old? What are the timestamps?

Re: sessions problem

2007-03-08 Thread mindcharger
Hello, That particular define controls ao CAKE handles sessions...you have 3 choices: * php - CAKE uses PHP Session to store Session Data * database - CAKE uses DB to store Session Data * cake - CAKE uses a temp file to store Session Data So, I think that NOT TELLING cake how you want it to

RE: sessions problem

2007-03-08 Thread Mariano Iglesias
] En nombre de mindcharger Enviado el: Jueves, 08 de Marzo de 2007 05:21 a.m. Para: Cake PHP Asunto: Re: sessions problem That particular define controls ao CAKE handles sessions...you have 3 choices: * php - CAKE uses PHP Session to store Session Data * database - CAKE uses DB to store Session Data

RE: sessions problem

2007-03-08 Thread Mariano Iglesias
] En nombre de mindcharger Enviado el: Jueves, 08 de Marzo de 2007 05:21 a.m. Para: Cake PHP Asunto: Re: sessions problem That particular define controls ao CAKE handles sessions...you have 3 choices: * php - CAKE uses PHP Session to store Session Data * database - CAKE uses DB to store Session Data

Re: sessions problem

2007-03-07 Thread mindcharger
Yep! They're the same... The phpinfo() shows the php.ini info, plus a couple more stuff... You don't have acess to php.ini? Well...let's see what we can do... First of all, you can force manually the session start...how? Like this: session_start(); $_SESSION['car'] = 'Dodge Charger R/T'; This

Re: sessions problem

2007-03-07 Thread bingo
Hi mindcharger, Thanks for the information. I will give it a try. For now, I tried playing with Cake_Session_Save and Security. I modified Cake_Session_Save to database and security to medium. These changes solved my current problems. Regards, Ritesh On Mar 7, 3:44 am, mindcharger [EMAIL

  1   2   >