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['
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
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
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
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
>
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
/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
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.
>
>
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
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
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
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
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
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
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
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
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'
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
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
> > 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
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 $
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:
>
>
> class SessionsController extends AppController {
> var $name = "Sessions";
> var $layout = "ajax";
> var $uses = array();
>
> function create(){
> if($this->Session->read('Data') == null){
> $this-&g
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 = "
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
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
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
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
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
> > > 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 "
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
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
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
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
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
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
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
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
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
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.
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
..
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
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
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
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
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
, 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
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,
&
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
() 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
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
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
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
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
');
$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
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
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(
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(){
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(){
$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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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/
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'
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
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
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
> 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
>
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.
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
101 - 200 of 483 matches
Mail list logo