Re: Session between controllers. Works only in FF.

2009-07-21 Thread Tibor Barna
The session id is not lost, infact the session is not available in the whole
domain.

After the login the user is rediredcted to
http://domain.de/app/webroot/index.php/home

in fact, it shuld go to

http://domain.de/home


the session is empty for all pages under
http://domain.de/

but it is filled under
http://domain.de/app/webroot/index.php/

so i assume that i have to fix the redirection part.
my redirects look like $this->redirect(array('controller' => 'home',
'action' => 'index'));
and my .htaccess files are the default ones provided my cake.

how can i remove the /app/webroot/ part from the urls?

Cheers,
Tibor


On Tue, Jul 21, 2009 at 5:16 PM, Piotr Kilczuk  wrote:

>
> Hello,
>
> > I have spent more then a day on this issue and still no solution :(
> >
> > I am working on my first cake based project and i have a session
> > problem.
> > Currently using php session, security level low, session name is
> > CAKEPHP.
> > Check agent = false.
> >
> > In FF everithing works fine, but in other browsers (IE, Safari, Opera
> > tested so far) the
> > session is not available between controllers.
> >
> > Ex:
> > I login and i get redirected to the /home page
> > From here i go to the /example page and the session is empty.
> > I go back to /home and the session is there.
> >
> > I have also tested, database session, cakephp session and still the
> > same prblem.
> >
> > This happens in every browser except FF.
> >
> > Help pls
> > I am running out of time :(.
>
> As a 1st step I'd check how do your cookies look like in Fx, IE etc.
> Possibly the session id is lost for some reason.
>
> Let us know.
>
>
> Regards,
> Piotr
>
> >
>

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



Re: Session between controllers. Works only in FF.

2009-07-21 Thread Piotr Kilczuk

Hello,

> I have spent more then a day on this issue and still no solution :(
>
> I am working on my first cake based project and i have a session
> problem.
> Currently using php session, security level low, session name is
> CAKEPHP.
> Check agent = false.
>
> In FF everithing works fine, but in other browsers (IE, Safari, Opera
> tested so far) the
> session is not available between controllers.
>
> Ex:
> I login and i get redirected to the /home page
> From here i go to the /example page and the session is empty.
> I go back to /home and the session is there.
>
> I have also tested, database session, cakephp session and still the
> same prblem.
>
> This happens in every browser except FF.
>
> Help pls
> I am running out of time :(.

As a 1st step I'd check how do your cookies look like in Fx, IE etc.
Possibly the session id is lost for some reason.

Let us know.


Regards,
Piotr

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



Session between controllers. Works only in FF.

2009-07-21 Thread tiborbarna

Hello everybody,

I have spent more then a day on this issue and still no solution :(

I am working on my first cake based project and i have a session
problem.
Currently using php session, security level low, session name is
CAKEPHP.
Check agent = false.

In FF everithing works fine, but in other browsers (IE, Safari, Opera
tested so far) the
session is not available between controllers.

Ex:
I login and i get redirected to the /home page
>From here i go to the /example page and the session is empty.
I go back to /home and the session is there.

I have also tested, database session, cakephp session and still the
same prblem.

This happens in every browser except FF.

Help pls
I am running out of time :(.


Tibor.

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