A session problem using database(cake-sessions)

2012-06-01 Thread Murray
I'm planning to use the database session mode in cake 1.3 for load balance through servers. However, in one of my servers, the session expires immediately while i write a session value, and the records in the database is odd and very very long.(The records from other servers are short). It's someth

Re: cakephp 2.0 auth session problem

2012-05-16 Thread Ryan Olton
I am also having an issue with sessions, and I'm very frequently being asked to log back in. Configure::write('Session', array( 'defaults' => 'database', 'ini' => array( 'session.cookie_secure' => false ) )); Configure::write('Security.level', 'med

Re: cakephp 2.0 auth session problem

2012-05-10 Thread phpMagpie
I am also noticing this problem a lot in 2.0, did either of you get to the bottom of it? It seems to be worse when multiple users are logging into the system at once, even when logging in with different users (does cake prevent concurrent logins with same account?) Regards, Paul. -- Our ne

Session problem

2012-04-11 Thread poncjusz
Hi! I have a strange session problem, even if I set to use as defaults - database - data is still not stored there - what is 'better' - I don't know where! How can I debug this thing? Should I set something more except and creating db table: Configure::write('Sessi

Re: cakephp 2.0 auth session problem

2011-11-16 Thread euromark
I also experienced quite an amount of unexpected logouts in 2.0 now. To make sure it is not the garbage collector of the file system I switched to "database". There no garbage collector should interfere as long as expires is not reached (which is several days). But the systems logs the user out aft

cakephp 2.0 auth session problem

2011-11-16 Thread joh...@baldemia.com
I've recently migrated an application from 1.3 to 2.0, and i'm encountering a problem with user authentification. The app uses a basic auth + acl setup, that worked fine in 1.3. First problem i encountered when deploying the app on my production server (CentOS6, php 5.3.6. mysql 5.1.12) was that

Re: session problem or misunderstanding.

2010-12-20 Thread georgeman
ontrol, but don't remember > How I did it. > > > > > > > > -Original Message- > From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf > > Of James K > Sent: Sunday, December 19, 2010 7:24 PM > To: CakePHP > Subject: Re

RE: session problem or misunderstanding.

2010-12-19 Thread Shinya Koizumi
t: Re: session problem or misunderstanding. Do you have the Session component enabled for the controller? If you debug out $this->Session you should get a debug out of the object. If you're getting nothing, it could also be that you have debug turned off in your core.php config file. On De

Re: session problem or misunderstanding.

2010-12-19 Thread James K
Do you have the Session component enabled for the controller? If you debug out $this->Session you should get a debug out of the object. If you're getting nothing, it could also be that you have debug turned off in your core.php config file. On Dec 19, 9:40 pm, cake-learner wrote: > I am trying to

Re: session problem or misunderstanding.

2010-12-19 Thread georgeman
did you try to echo var_dump($_SESSION); ? On Dec 19, 9:40 pm, cake-learner wrote: > I am trying to pass a variale with session but without success for a > while. > within the same controller i go $this -> Session -> write( 'id', 1 ); > $this -> Session -> read( 'id' ); > > i gotta nothing and e

session problem or misunderstanding.

2010-12-19 Thread cake-learner
I am trying to pass a variale with session but without success for a while. within the same controller i go $this -> Session -> write( 'id', 1 ); $this -> Session -> read( 'id' ); i gotta nothing and empty when i go debug( $this -> Session ); I tried with $_SESSION so i guess within the same contr

Re: Strange Session problem

2010-10-29 Thread Squire
Hi Jeremy thanks for the response. Typically I have now found the mistake, after posting... this tends to happen to me. Here's what happened. We have an auto-complete input box that uses an ajax call to find the users in the system. Since this can be used multiple times, I cached the results in t

Re: Strange Session problem

2010-10-29 Thread Jeremy Burns | Class Outfit
Are you switching between http and https at any time? Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 29 Oct 2010, at 05:52, Squire wrote: > Hi > > I've just encountered a really strange problem on one of our > production sites. This is the scenario: > > We

Strange Session problem

2010-10-29 Thread Squire
Hi I've just encountered a really strange problem on one of our production sites. This is the scenario: We have a reporting page where a user can put in search criteria. Those search criteria are saved in the session, and the data is returned. Then the user can download the report. The download a

Re: Session Problem with Auth

2010-05-25 Thread WebbedIT
Can you explain how that change has anything to do with your original query? Placing your logic in the Users controller is only going to change the layout when they are working with actions from that controller, should that not be in the App controller and have it check if the users is logged in t

Re: Session Problem with Auth

2010-05-24 Thread Hussain
I am able to log in. the problem is solved by changing following setting in core.php Configure::write('Session.checkAgent', false); thanks for your response. On May 24, 4:00 pm, John Andersen wrote: > Can you log in? > Enjoy, >    John > > On May 24, 1:49 pm, Hussain wrote: > > > > > > > I am d

Re: Session Problem with Auth

2010-05-24 Thread John Andersen
Can you log in? Enjoy, John On May 24, 1:49 pm, Hussain wrote: > I am developing application cakephp 1.2.7. For that there are > different user level. > for different users I have added code in users controller >  $users = $this->Session->read('Auth.User'); > //print_r($users); > $user_type =

Session Problem with Auth

2010-05-24 Thread Hussain
I am developing application cakephp 1.2.7. For that there are different user level. for different users I have added code in users controller $users = $this->Session->read('Auth.User'); //print_r($users); $user_type = $users['group_id']; $group =$user_type;

some session problem in cakephp 1.3 (help me)

2010-04-30 Thread hoss7
i have this app_controller code in cakephp 1.2: params['admin'])) { // Set the default layout $this->layout = 'admin'; }else { $this->layout = 'default'; } //Override default fields used by Auth component $this->Auth->fields = ar

Re: interesting session problem - session is lost and recovers again randomly

2010-02-02 Thread rich...@home
Are you using IE? And making Ajax calls? or launching applets? I had this problem for the last few days. The fix is to set Configure::write('Session.checkAgent', false); in core.php The reason is: IE sometimes uses a different user agent string when doing ajax calls, and so will any ap

interesting session problem - session is lost and recovers again randomly

2010-02-01 Thread ecommy.com
Greetings, I am building a web application which uses a simple auth login system which was inspired from the cake manual. Nothing fancy. Everything was fine on localhost, but when I uploaded to a linux server, the user gets logger in and out randomly by just browsing through the application. I a

Re: session problem in AppController - some research and strange results

2009-09-17 Thread brian
On Thu, Sep 17, 2009 at 11:18 PM, Dr. Loboto wrote: > > If I remember right, afterFilter is not called on redirect. Cake team > have some reasons for it. That's because redirect() should immediately leave the action, so running afterFilter() would be undesirable. --~--~-~--~~---

Re: session problem in AppController - some research and strange results

2009-09-17 Thread Dr. Loboto
If I remember right, afterFilter is not called on redirect. Cake team have some reasons for it. On Sep 17, 6:51 pm, Ace wrote: > Hi, > > I have strange problem with cakephp session. I have few controllers > that needs date changing logic for the stats so I moved all the needed > methods to app_c

session problem in AppController - some research and strange results

2009-09-17 Thread Ace
Hi, I have strange problem with cakephp session. I have few controllers that needs date changing logic for the stats so I moved all the needed methods to app_controller. Since then I struggle with a problem of losing session data. The main idea is simple: date is being kept in the session, in bef

Re: Session Problem...

2008-11-22 Thread Aneesh S
Thanks Kyo... Now its showing no probs.. Aneesh S On Sat, Nov 22, 2008 at 3:56 PM, Kyo <[EMAIL PROTECTED]> wrote: > > Set the 'Security.level' to 'medium' in /app/config/core.php > CakePHP regenerates session IDs for every request if 'Security.level' > is set to 'high'. > > > --~-

Re: Session Problem...

2008-11-22 Thread Kyo
Set the 'Security.level' to 'medium' in /app/config/core.php CakePHP regenerates session IDs for every request if 'Security.level' is set to 'high'. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To

Session Problem...

2008-11-21 Thread Aneesh S
Hi, Need help on session... In my project, at the user side , after login, the login session seems to be destroyed after some clicks on the user's links. It happens very often in IE (8) and less often in FireFox (3). It seems to happen after the the user uses the chat facility. I

The Lost Session Problem

2008-11-20 Thread benko
Hey Guys, I have accepted the fact that setting the Session.security = 'high' will regenerate session id on each request. However, when I set the Session.security = 'medium' it actually sets the session Cookie to expire in the future. This to me is a big security problem. Is there anyway to hav

CakePHP - Session Problem

2008-11-14 Thread vidyahasten
@filesource * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP (tm) Project * @package cake * @subpackage cake.app.config * @since

Re: Strange session problem

2008-08-26 Thread Günther Theilen
Hi again, I think I found the solution: I named the session cookie foo.bar. If I call it foo_bar it works. Are dots not allowed in cookie names? Regards Guenther --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cak

Strange session problem

2008-08-26 Thread Günther Theilen
Hi, I'm using Cake 1.2.0.7296 RC2 on a local LAMP machine and I ran into a problem: There a two sites "foo.local" and "bar.local", both have identical apache configuration files. They use different cake installation but (as far as I can see) the configuration files are identical (except for th

Re: Session problem

2008-07-07 Thread amfriedman
I am experiencing a similar issue, but a more subtle one. The solutions provided in the links do not help. I've tried them all. Here's what I'm trying to do: I keep an array of the last 10 URLs on my site the user has visited in the session variable 'urlBackTrack'. With every page the user la

Re: Session problem with phpcaptcha component in Cake 1.1

2008-06-30 Thread skoggins
I figured it out. I needed to exclude 'users/captcha' from my __validateLoginStatus method, that's all. On Jun 26, 11:23 am, skoggins <[EMAIL PROTECTED]> wrote: > Hi All, > > I am trying to use the phpcaptcha component with Cake 1.1. and I find > that it works fine when a user is logged in but t

Session problem with phpcaptcha component in Cake 1.1

2008-06-26 Thread skoggins
Hi All, I am trying to use the phpcaptcha component with Cake 1.1. and I find that it works fine when a user is logged in but the image does not appear when no one is logged into the site. THis makes me think it is an issue with phpcaptcha needing a Session to be started before it can appear but

Re: Session problem

2008-06-10 Thread Andrew Assarattanakul
Check a few of these discussions as a few other people have had this issue and resolved it. http://groups.google.com/group/cake-php/browse_thread/thread/c4b30b02adaf4a9f/f71248fa3cb18220 http://groups.google.com/group/cake-php/browse_thread/thread/b173577dbca8b3f9# On Jun 10, 5:20 am, koko <[EM

Re: Session problem

2008-06-10 Thread koko
Anybody found a solution to this ?? I am having the exact same problem here !! On May 21, 5:25 am, Ozzy OG Kush <[EMAIL PROTECTED]> wrote: > Hey, > > I am having this same exact problem! I'm using CakePHP 1.1.19.6305 . > > This is very frustrating! Any help would be very appreciated. > > On Apr

Re: Session problem

2008-05-21 Thread Ozzy OG Kush
Hey, I am having this same exact problem! I'm using CakePHP 1.1.19.6305 . This is very frustrating! Any help would be very appreciated. On Apr 23, 11:45 am, creationsings <[EMAIL PROTECTED]> wrote: > Did you ever find a solution to this?  I think I am experiencing a > similar problem.  I can wr

Re: Session problem Firefox

2008-05-18 Thread Siebren Bakker
not for me, a single app running on a single sub-domain. I only notice the session drops when I edit/save files through an ssh shell. Will do some testing to make sure that that's it though. On Sun, May 18, 2008 at 12:08 PM, leveille <[EMAIL PROTECTED]> wrote: > > Out of curiosity, you don't happ

Re: Session problem Firefox

2008-05-18 Thread leveille
Out of curiosity, you don't happen to have two apps running on the same domain, both with a config/core.php? In this case, I have seen problems before where Configure::write('Session.cookie', 'CAKEPHP');, defined in both, causes a clash of cookies in some instances, consequently dropping a sessio

Re: Session problem Firefox

2008-05-17 Thread Siebren Bakker
If you could give us a little more information about this, that would be extremely helpful. I run into a similar problem with Firefox, where the session will be dropped. This seems to happen when I'm editing files though, so I have a feeling that that might be causing the problems. I'm using Beta:

Session problem Firefox

2008-05-17 Thread RugerJ
Hello, I’m having session problems only when using Firefox or Safari. When I update or insert a record the data is saved but I get redirected to the login page. The weird thing is that the session seems alive, cos I can see the user variables in the menu. I haven’t got any redirects to the login

Session problem: New session on every page view

2008-05-09 Thread work2bike
Howdy, I'm using Cake 1.2 and storing sessions in the database using the built-in functions, but I'm having a problem with sessions. A normal Cake 1.2 installation set up this way inserts one row in the Sessions table per visitor. If security is High the session id is recreated in that row. If

Re: Session problem

2008-04-23 Thread creationsings
Did you ever find a solution to this? I think I am experiencing a similar problem. I can write to a session variable, but I can only read the valid value if I do so before the action completes. Once the action completes and a new one is called, the session information is gone. I am extremely n

Re: Session problem

2008-04-17 Thread Ramiro Araujo
I still have not succeded in this... The strange thing is that im using the Auth component, and im pretty sure It uses sessions. What I dont know if it uses them with $_SESSION or with the session component, but I would bet for the second. Quite strange.. I'll try in other cake instalations aroun

Re: Session problem

2008-04-15 Thread Ramiro Araujo
Hi, thanks! here it is: Configure::write('Session.save', 'php'); //also tried with 'cake' Configure::write('Session.cookie', 'CAKEPHP'); Configure::write('Session.timeout', '120'); Configure::write('Session.start', true); Configure::write('Session.checkAgent', true); //also tried with false Confi

Re: Session problem

2008-04-14 Thread b logica
How is your core.php configured? Post what you have for all Configure::write('Session.*', '...') and whether they are uncommented or not. On Mon, Apr 14, 2008 at 1:35 PM, Ramiro Araujo <[EMAIL PROTECTED]> wrote: > > Hi. Im having a strange problem, and couldn't find any solution or > anyone wit

Session problem

2008-04-14 Thread Ramiro Araujo
Hi. Im having a strange problem, and couldn't find any solution or anyone with a similar problem... Its quite simple: same controller, 2 methods: function sessionWriteTest ($key, $value) { $this->Session->write($key, $value); } function sessionReadTest ($key) { debug($this->Sessi

Session problem

2008-04-12 Thread herc
If I change value of dropdown list, I change value of session. Every time I need refresh page to make session alive. Why? In dropdown list I use javascript MM_jumpMenu() to refresh page, but that is not enought. {foreach from=$langs item=lang} {$lang.I18nLang.name} {/foreach} --~--~-~--

session problem

2008-02-14 Thread Formigao TTS
I've session problem in CakePHP 1.1.19, because when I'm sailing in pages, the session expiring! the timeout is define('CAKE_SESSION_TIMEOUT', '120'); somebody had this problem? --~--~-~--~~~---~--~~ You received this message bec

Re: start session problem in cakephp1.2 beta

2008-01-30 Thread Richard
...okay installed the nightly and this now works. On Jan 30, 10:06 pm, Richard <[EMAIL PROTECTED]> wrote: > I have the same problem since upgrading to 1.2 beta from alpha. I need > to add @session_start(); to each action even though Session.start is > set to true. Did you manage to find a fix? >

Re: start session problem in cakephp1.2 beta

2008-01-30 Thread Richard
I have the same problem since upgrading to 1.2 beta from alpha. I need to add @session_start(); to each action even though Session.start is set to true. Did you manage to find a fix? On Jan 7, 1:03 pm, phpcurious <[EMAIL PROTECTED]> wrote: > I have almost the same problem as you do with regards t

Re: start session problem in cakephp1.2 beta

2008-01-07 Thread phpcurious
I have almost the same problem as you do with regards to the Session.start. I do this in Cakephp 1.1.x when setting sessions: define('AUTO_SESSION', false); define('CAKE_SESSION_SAVE', 'database'); define('CAKE_SESSION_TABLE', 'cake_sessions'); define('CAKE_SESSION_TIMEOUT', '120')

Re: start session problem in cakephp1.2 beta

2008-01-07 Thread pravinda
Hi Everybody, It was my wrong manipulation. The actual problem is I want to get some session data in routes.php itself, because my application is more than 99% ajax based and I don't want to change the url in the address bar. So, while login I set some session variable for next action and then ref

Re: start session problem in cakephp1.2 beta

2008-01-06 Thread pravinda
Hi Robby, Thanks to reply, but I already done this but still this problem persist. I have already written in my topic about this. -pravin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to t

Re: start session problem in cakephp1.2 beta

2008-01-05 Thread Robby Anderson
When you upgraded, did you diff the various control files and walk through the updates? You _should_ have this line somewhere in your core.php in app/config (in mine it is on line 131): Configure::write('Session.start', true); That is all you should need to do to get sessions to auto-start. -r

start session problem in cakephp1.2 beta

2008-01-05 Thread pravinda
Hi everybody, I have used cakephp prebeta, now cakephp1.2 beta is released. There were some problem in prebeta in form helper so now I am trying to use beta version. In this version I am facing a session problem in core.php I have set Configure::write('Session.timeout', '120')

cake 1.2 requestAction + Session problem

2008-01-03 Thread yudhi717
I have a login controller that handles session check and login function and other controllers that request session check to the login controller. Here is my problem, in cake 1.1 it's just fine, but when i switch to cake 1.2 i get this error message : Notice (8): Undefined variable: _SESSION [COR

Re: Session problem ....

2007-12-19 Thread dw
I have been having a similar (if not the exact) issue with 1.2. Sessions worked well in my dev setup (wamp on my laptop), but not in production. Setting the Session.checkAgent to False in config/core.php seems to have corrected the issue for me. On Dec 18, 12:18 pm, hausburger <[EMAIL PROTECTE

Re: Session problem ....

2007-12-18 Thread hausburger
> 1) With Debug set at level 3 do you see the app inserting multiple > session records in your database? not at the same time. > 2) Are you using any AJAX calls? not in my testcase. > 3) Are you making any requestAction calls? no. > 4) Have you tried turning 'Session.checkAgent' to false? (Does

Re: Session problem ....

2007-12-18 Thread j-rod
Questions that would help me (any maybe others) diagnose the problem. 1) With Debug set at level 3 do you see the app inserting multiple session records in your database? 2) Are you using any AJAX calls? 3) Are you making any requestAction calls? 4) Have you tried turning 'Session.checkAgent' to

Re: Session problem ....

2007-12-18 Thread stefuNz
ok ... using lowercase functions read() and write() doesn't work, too ... :/ On 18 Dez., 12:29, hausburger <[EMAIL PROTECTED]> wrote: > hi everyone. just for your information: > - i tried database and cake as session storage (same problem) > - Configure::write('Security.level', 'medium'); > > the

Re: Session problem ....

2007-12-18 Thread hausburger
hi everyone. just for your information: - i tried database and cake as session storage (same problem) - Configure::write('Security.level', 'medium'); the problem seems to be the cookie: - NameCAKEPHP Value dc5

Re: Session problem ....

2007-12-18 Thread stefuNz
hi everyone, thanks for all the replies! but nothing helped :( i'm using 1.2.0.5875 pre-beta and now i'm posting my core.php session settings, maybe i have something wrong here !? (when it's set to database, sometimes the database table is filled by some session stuff i guess .. but there are sev

Re: Session problem ....

2007-12-18 Thread Dave J
hi stefan, just a quick question cos I have just ran into this problem about an hour ago. are you using the latest nightly or the 5875 release? Cos i'm having problems with the session not storing anything in the latest nightly... and going back to the pre-beta release fixed it. I'm still loo

Re: Session problem ....

2007-12-18 Thread dr. Hannibal Lecter
Also, I'd be careful to use $this->Session->read() instead of $this- >Session-Read() (and write() instead of Write()). Those caps can be nasty.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To pos

Re: Session problem ....

2007-12-17 Thread Baz
Just a thought... Are all the settings in core.php appropriate? Do sessions work on you PHP set up, period? Are you saving to database or file? Are you file permissions setup correctly? -- Baz L Web Development 2.0: Web Design, CakePHP, Javascript http://www.WebDevelopment2.com/ On Dec 17, 2007 5

Re: Session problem ....

2007-12-17 Thread stefuNz
Hi Baz! Thanks for your quick reply. I just tested this and then i tested it with a normal string 'test' ... but it didn't work. Here's the output of pr($this->session) after trying to $this->session->read('test'); (btw. test is the name of the variable AND the value .. quite confusing but neverm

Re: Session problem ....

2007-12-17 Thread Baz
You may want to take a look at this: http://groups.google.com/group/cake-php/browse_thread/thread/a83a61b1d286c718/af60f3edf689eb58 I've had problems with Cookies, which sound like your Session problems. -- Baz L Web Development 2.0 http://WebDevelopment2.com/ On Dec 17, 2007 4:46 PM, stefuNz <[E

Session problem ....

2007-12-17 Thread stefuNz
Hi.. I use CakePHP 1.2 and i include the session component in $components = array('Session'); The Config is set up to store session information in my database. Now i want to write a variable 'User', where User Information is stored (as an array). so i use $this->Session->Write('User',$array); i

Re: Session problem in app_controller

2007-11-01 Thread Grant Cox
I think you'll find that the $this->name is "Users", not "User". For our applications with simple authentication, I define another controller variable called $public_actions, which is an array of action names that do not need any authentication (as there are usually only a couple of these). So,

Session problem in app_controller

2007-11-01 Thread Anoop
Hi I have using the app_controller to redirect the request if the session is not valid.But the page isn't redirecting properly .Firefox has detected that the server is redirecting the request for this address in a way that will never complete. if I comment the lines: $this->redirect('/users/login'

Session Problem

2007-10-26 Thread [EMAIL PROTECTED]
Hi, I'm new to CakePHP. I'm using WinXP, Apache 2.2, PHP 5 and CakePHP 1.2. I run into this problem about session. I can't retrieve the session when I redirect the user to another page like "/articles" after login except if it's on the same controller 'UsersController'. class UsersController ex

Re: Session problem in app_controller

2007-10-24 Thread Grant Cox
This is because beforeFilter runs on all requests, including on /users/ login . So if you don't explicitly check for this (and any other pages where you don't need to be logged in to access), then it will see you are not logged in, and redirect you to /users/login. This is causing an infinite re

Re: Session problem in app_controller

2007-10-24 Thread [EMAIL PROTECTED]
yeah!! that worked just fine! thanks however, now I'm getting another error by the browser: The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete. if I comment the lines: $this->redirect('/users/log

Re: Session problem in app_controller

2007-10-24 Thread Gwoo
You should look at the example in the Manual. It does not use __construct(), it uses beforeFilter. The reason for this is the components are not loaded in the constructor of the Controller. http://manual.cakephp.org/appendix/simple_user_auth --~--~-~--~~~---~--~~

Re: Session problem in app_controller

2007-10-24 Thread [EMAIL PROTECTED]
checkSession()) $this->layout = 'default'; else $this->layout = 'login'; } function checkSession() { // If the session info hasn't been set... if (!$this->Session->check('User')) {

Re: Session problem in app_controller

2007-10-24 Thread [EMAIL PROTECTED]
No, but I just added var $components = array('session'); and the error continues. On Oct 24, 1:38 pm, dardosordi <[EMAIL PROTECTED]> wrote: > Are you using the session component? > > On Oct 24, 3:37 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > I'm using cake 1.1.17, and am followi

Re: Session problem in app_controller

2007-10-24 Thread Matt Kosoy
Post the code from your app controller so we can take a look. -m On Oct 24, 2:37 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'm using cake 1.1.17, and am following the Simple User Authentication > example from the manual (http://manual.cakephp.org/appendix/ > simple_user_auth), and I

Re: Session problem in app_controller

2007-10-24 Thread dardosordi
Are you using the session component? On Oct 24, 3:37 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'm using cake 1.1.17, and am following the Simple User Authentication > example from the manual (http://manual.cakephp.org/appendix/ > simple_user_auth), and I get the following error when I

Session problem in app_controller

2007-10-24 Thread [EMAIL PROTECTED]
I'm using cake 1.1.17, and am following the Simple User Authentication example from the manual (http://manual.cakephp.org/appendix/ simple_user_auth), and I get the following error when I write the checkSession function in the app_controller.php file: Notice: Undefined property: PagesController::

SwfUpload: session problem solved without cake core hack

2007-09-26 Thread Vladimir
When you use some Flash stuff that sends AJAX request then you loose your session id because Flash is not the same HTTP_USER_AGENT as your good browser. I discovered that trying to use SwfUpload (upload your files using AJAX with progressbar). I cannot send params directly due to security reasons.

Re: Session Problem for more than 1 variable

2007-06-10 Thread metasan
Hi, I looked at your code. 1. When you store datas into session you use $this->data, this is good but it don t contains the vars you are looking for. $this->data['Login'] is ok because it contains the data provided by the form. 2. The vars you are looking for are in the $results tab. Try : $th

Re: Session Problem for more than 1 variable

2007-06-10 Thread Lemune
Thank you all I got the answer from irc. Metasan said that the data is empty on filed login_type_id and user_id (because it came from the form thtml), so I have to use the $resuls variable not the data, this is my new code: $this->Session->write('user',$this->data['Login']['username']); $this->S

Re: Session Problem for more than 1 variable

2007-06-10 Thread Lemune
Hi again. Sorry cause i just 2 days away. ErreUve I 'm also have try using your method.and this is my code: $this->Session->write('user',$this->data['Login']); $level=$this->Session->read('user.login_type_id'); if($level==1) { $this->redirect('/administrators/index'); exit(); }

Re: Session Problem for more than 1 variable

2007-06-08 Thread ErreUve
Hi, I'm new with cakephp and I try to write all the User model in the session. Why is better serialize? Is there any problem with the data? The read and write works properly. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Session Problem for more than 1 variable

2007-06-08 Thread Repsah
No, nevermind, I read what you were doing wrong. On 6/8/07, ErreUve <[EMAIL PROTECTED]> wrote: > > > Hi, > > I'm new with cakephp and I try to write all the User model in the > session. > Why is better serialize? Is there any problem with the data? The read > and write works properly. > > Thanks >

Re: Session Problem for more than 1 variable

2007-06-08 Thread Repsah
ErreUve, you're writing an array in session, I think you need to serialize it (check the php functions serialize and unserialize). On 6/8/07, ErreUve <[EMAIL PROTECTED]> wrote: > > > Hello all, > > I had the same problem. And I try wthis this: I put the 'User' in the > session and I read this at i

Re: Session Problem for more than 1 variable

2007-06-08 Thread ErreUve
Hello all, I had the same problem. And I try wthis this: I put the 'User' in the session and I read this at index.thml. I've a WAMP and my login controller is like yours: function login() { // If a user has submitted form data: if (!empty($this->data)) { $someone =$this->User->findByid

Re: Session Problem for more than 1 variable

2007-06-07 Thread Lemune
Ok. I had already try the simple code about session, and now its work for code : But for my code in the first post (my first question), it still don't work. for you who don't remember my code: This is my code: function log_in() { $this->set('error',false);

Re: Session Problem for more than 1 variable

2007-06-07 Thread Lemune
Ok. I will try. By the way WAMP that i think that you ask is WAMP installer that come from Roman Bourdon (Like php triad and XAMPP ). :-)) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post t

Re: Session Problem for more than 1 variable

2007-06-07 Thread Ketan Patel
Refer to http://cakeforge.org/snippet/detail.php?type=snippet&id=189 This has the sessions section for php.ini. Your setup is commonly known as WAMP (Windows, Apache, MySQL, PHP) Compare with yours and adjust accordingly! On Jun 7, 9:30 pm, Lemune <[EMAIL PROTECTED]> wrote: > I use neither of

Re: Session Problem for more than 1 variable

2007-06-07 Thread Lemune
I use neither of both. I use php-5.2.2-Win32, apache_2.2.4-win32-x86-no_ssl (Installer), mysql-5.0.37-win32 (Installer), cake_1.1.15.5144, and phpMyAdmin-2.10.0.2-english. Ketan Patel wrote: > I will send you my php.ini once i get home. What is your setup? WAMP > or LAMP? > > Ketan > > Lemune wro

Re: Session Problem for more than 1 variable

2007-06-07 Thread Ketan Patel
I will send you my php.ini once i get home. What is your setup? WAMP or LAMP? Ketan Lemune wrote: > Hello again. > I have tried your suggestion (Ketan Patel), and I don't see the > printout on 2nd visit. > Your suggestion is to fix it in php.ini. > I need help in this matters, because i don't kn

Re: Session Problem for more than 1 variable

2007-06-06 Thread Lemune
Hello again. I have tried your suggestion (Ketan Patel), and I don't see the printout on 2nd visit. Your suggestion is to fix it in php.ini. I need help in this matters, because i don't know what is to be fix. --~--~-~--~~~---~--~~ You received this message becaus

Re: Session Problem for more than 1 variable

2007-06-06 Thread Ketan Patel
First try writing a small php script: create temp.php in your 'DocumentRoot' Directory of your server (check httpd.conf for this path). Save following code to temp.php: Visit http://localhost/temp.php two times. For 1st time, it will be all blank. For 2nd time, if you see the printout- Sessio

Session Problem for more than 1 variable

2007-06-06 Thread Lemune
Hello all, I'm just begin using the cakephp. I'm trying to store 3 variable in session, but only the first one that can be read. This is my code: function log_in() { $this->set('error',false); if($this->data) { $res

Re: Scaffold & insert: session problem

2007-04-16 Thread bono
Solved, I had validate_empty in id field :) thanks John! PS. There is no way to edit own post titles here? Would be nice habit to put some status marks to them (Solved: Scaffold & insert: session problem) On Apr 17, 12:08 am, John David Anderson <[EMAIL PROTECTED]> wrote: > On Apr

Re: Scaffold & insert: session problem

2007-04-16 Thread John David Anderson
On Apr 16, 2007, at 1:59 PM, bono wrote: > > Lots of same kind of question but didn't find the answer. I have table > like this: > > CREATE TABLE 'users' ( > 'id' INT( 10 ) NOT NULL AUTO_INCREMENT , > 'username' VARCHAR( 40 ) NOT NULL , > 'password' VARCHAR( 40 ) NOT NULL , > 'email' VARCHAR( 25

Scaffold & insert: session problem

2007-04-16 Thread bono
Lots of same kind of question but didn't find the answer. I have table like this: CREATE TABLE 'users' ( 'id' INT( 10 ) NOT NULL AUTO_INCREMENT , 'username' VARCHAR( 40 ) NOT NULL , 'password' VARCHAR( 40 ) NOT NULL , 'email' VARCHAR( 255 ) NOT NULL , 'first_name' VARCHAR( 40 ) NOT NULL , 'last_n

Re: kcaptcha session problem

2007-02-14 Thread c1sc0
Ok, turned out I was running into session race conditions. I temporarily solved the problem by switching the session handler to php. But, I still have a couple of questions, anyone care to explain? I'm writing directly into $_SESSION now. Q: Does this mean I can mix & match sessions? E.g. have 2

  1   2   >