Session not working (cakephp 2.8)

Hi , I have put my cakephp framework inside subdomain ,

after this my logged in session is not working ,

Hi!

Could you share more information on what you have tried and the errors you are getting?

1 Like

I’m using cakephp version 2.8 , uploaded my code in inside a folder in named as app , app is a subdomain like app.hello.com. so after uploading my code inside this folder session stop working.
I did not understand this , is this because I have directory now /public_html/app/app/Config

1 Like

Cool, could you share a bit more so that someone can help you? such as what errors, what server software you are using, what his config looks like etc

1 Like

I’m using Nginx server . And no I did not receiving any error , my problem is after logout , I can directly access previous page, which is should not be happen, it should redirect me on login page.

1 Like

It’s related to cookie domain and path. Clear cookies , then use some web browser extension to see what cookies were set and for what domain. I guess you set cookie for app.hello.com and you try to delete cookie for hello.com or the other way around. Then try to logout and check cookies again. If you do not find any good solution then hacking cake session handler will be last option to try.

1 Like

Most modern webbrowsers (eg. Chrome and Firefox) come with this feature build in.

1 Like

Thank for your feedback , but it not browser specific , logout feature did not killing my session. Also after login screen when I jump on another screen session variables are lost.

1 Like

You meant to use browser to see if issue is related to what I mentioned.

1 Like

Same problem when i try to firefox that time session not working. but in chrome working fine. any one help me?