Re: 1.2 Session variable disappears

2007-12-20 Thread dw

Thanks for the replies. I finally figured out that it was Firecake
itself which was screwing with the session.
Removing the firecake reference from the view fixed my problem.

On Dec 14, 9:45 pm, jarmstrong <[EMAIL PROTECTED]> wrote:
> What security level do you have your cakeapp running at? Many people have had
> issues with high security if they run any requestAction calls that would
> trigger a new session and would appear that you are losing your set
> variables (because the session gets recreated). Also turn on debugging and
> watch the database calls to see if it is indeed creating many new entries.
> --
> View this message in 
> context:http://www.nabble.com/1.2-Session-variable-disappears-tp14324048p1434...
> Sent from the CakePHP mailing list archive at Nabble.com.

--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: 1.2 Session variable disappears

2007-12-14 Thread jarmstrong


What security level do you have your cakeapp running at? Many people have had
issues with high security if they run any requestAction calls that would
trigger a new session and would appear that you are losing your set
variables (because the session gets recreated). Also turn on debugging and
watch the database calls to see if it is indeed creating many new entries.
-- 
View this message in context: 
http://www.nabble.com/1.2-Session-variable-disappears-tp14324048p14348198.html
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: 1.2 Session variable disappears

2007-12-14 Thread dw

Thanks for the responses. I have tried both using php and cake to set
session data, and both are failing.
The tmp/sessions directory is writable, and in fact, there is session
data there. I've checked everything in the app/config directory and
nothing is different from development to production (except
database.php of course). I even went ahead and replaced the cake
directory with my development cake directory to make sure nothing was
different and still the session data disappears.

I am just about out of ideas. Strange.

-d

On Dec 13, 2:27 pm, zonium <[EMAIL PROTECTED]> wrote:
> One thing you can check:
> The location where session is saved. If 2 pages are from 2 different
> applications and if they share session the paths (locations) need to
> be identical
>
> Good luck,
> Zonium
>
> On Dec 13, 1:35 pm, francky06l <[EMAIL PROTECTED]> wrote:
>
> > If it's works under development and not on production, this seems a
> > configuration problem to me .. Did you check if the directory where
> > sessions are stored is present en writable on production server (if
> > you store in file of course)? Are the settings for cake (and version,
> > Security level etc ..) identical ?
>
> > On Dec 13, 9:13 pm, dw <[EMAIL PROTECTED]> wrote:
>
> > > My login function sets a session variable which contains user data. It
> > > then redirects to an index page. Using Firecake, i see that the
> > > session data is there:
>
> > >  5fbout['Sessions'] = {"Config":
> > > {"userAgent":"25fed2e5facba72bdb68484b4b19538b","time":
> > > 1197579960,"rand":2113374583},"User":{"id":
> > > 33,"username":"test","password":"098f6bcd4621d373cade4e832627b4f6","email":"","admin":"","created":"2007-12-08
> > > 13:12:25"}};
>
> > > But, as soon as i try to access another page, i get kicked back to the
> > > login screen, and the session data is not there. The really odd thing
> > > is that this is working fine on my WAMP development setup, but not on
> > > my production machine. Obviously, the function checking the user's
> > > credentials and setting the session variable is correct. Somehow this
> > > is being lost.
>
> > > I wanted to migrate to the Auth component, but i was having troubles
> > > with that. So, i upgraded to 1.2 first and then was going to tackle
> > > the Auth stuff. Now i am thinking that the issue i was having with
> > > Auth is the same as this issue.
>
> > > Any thoughts? I am at a loss as to what is happening here...

--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: 1.2 Session variable disappears

2007-12-13 Thread zonium

One thing you can check:
The location where session is saved. If 2 pages are from 2 different
applications and if they share session the paths (locations) need to
be identical

Good luck,
Zonium

On Dec 13, 1:35 pm, francky06l <[EMAIL PROTECTED]> wrote:
> If it's works under development and not on production, this seems a
> configuration problem to me .. Did you check if the directory where
> sessions are stored is present en writable on production server (if
> you store in file of course)? Are the settings for cake (and version,
> Security level etc ..) identical ?
>
> On Dec 13, 9:13 pm, dw <[EMAIL PROTECTED]> wrote:
>
> > My login function sets a session variable which contains user data. It
> > then redirects to an index page. Using Firecake, i see that the
> > session data is there:
>
> >  5fbout['Sessions'] = {"Config":
> > {"userAgent":"25fed2e5facba72bdb68484b4b19538b","time":
> > 1197579960,"rand":2113374583},"User":{"id":
> > 33,"username":"test","password":"098f6bcd4621d373cade4e832627b4f6","email":"","admin":"","created":"2007-12-08
> > 13:12:25"}};
>
> > But, as soon as i try to access another page, i get kicked back to the
> > login screen, and the session data is not there. The really odd thing
> > is that this is working fine on my WAMP development setup, but not on
> > my production machine. Obviously, the function checking the user's
> > credentials and setting the session variable is correct. Somehow this
> > is being lost.
>
> > I wanted to migrate to the Auth component, but i was having troubles
> > with that. So, i upgraded to 1.2 first and then was going to tackle
> > the Auth stuff. Now i am thinking that the issue i was having with
> > Auth is the same as this issue.
>
> > Any thoughts? I am at a loss as to what is happening here...
--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: 1.2 Session variable disappears

2007-12-13 Thread francky06l

If it's works under development and not on production, this seems a
configuration problem to me .. Did you check if the directory where
sessions are stored is present en writable on production server (if
you store in file of course)? Are the settings for cake (and version,
Security level etc ..) identical ?

On Dec 13, 9:13 pm, dw <[EMAIL PROTECTED]> wrote:
> My login function sets a session variable which contains user data. It
> then redirects to an index page. Using Firecake, i see that the
> session data is there:
>
>  5fbout['Sessions'] = {"Config":
> {"userAgent":"25fed2e5facba72bdb68484b4b19538b","time":
> 1197579960,"rand":2113374583},"User":{"id":
> 33,"username":"test","password":"098f6bcd4621d373cade4e832627b4f6","email":"","admin":"","created":"2007-12-08
> 13:12:25"}};
>
> But, as soon as i try to access another page, i get kicked back to the
> login screen, and the session data is not there. The really odd thing
> is that this is working fine on my WAMP development setup, but not on
> my production machine. Obviously, the function checking the user's
> credentials and setting the session variable is correct. Somehow this
> is being lost.
>
> I wanted to migrate to the Auth component, but i was having troubles
> with that. So, i upgraded to 1.2 first and then was going to tackle
> the Auth stuff. Now i am thinking that the issue i was having with
> Auth is the same as this issue.
>
> Any thoughts? I am at a loss as to what is happening here...
--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



1.2 Session variable disappears

2007-12-13 Thread dw

My login function sets a session variable which contains user data. It
then redirects to an index page. Using Firecake, i see that the
session data is there:

 5fbout['Sessions'] = {"Config":
{"userAgent":"25fed2e5facba72bdb68484b4b19538b","time":
1197579960,"rand":2113374583},"User":{"id":
33,"username":"test","password":"098f6bcd4621d373cade4e832627b4f6","email":"","admin":"","created":"2007-12-08
13:12:25"}};

But, as soon as i try to access another page, i get kicked back to the
login screen, and the session data is not there. The really odd thing
is that this is working fine on my WAMP development setup, but not on
my production machine. Obviously, the function checking the user's
credentials and setting the session variable is correct. Somehow this
is being lost.

I wanted to migrate to the Auth component, but i was having troubles
with that. So, i upgraded to 1.2 first and then was going to tackle
the Auth stuff. Now i am thinking that the issue i was having with
Auth is the same as this issue.

Any thoughts? I am at a loss as to what is happening here...

--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---